本文整理汇总了C++中PHP_MODULE_GLOBALS函数的典型用法代码示例。如果您正苦于以下问题:C++ PHP_MODULE_GLOBALS函数的具体用法?C++ PHP_MODULE_GLOBALS怎么用?C++ PHP_MODULE_GLOBALS使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PHP_MODULE_GLOBALS函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: PHP_MINIT
};
/* }}} */
/* {{{ 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
*/
/* Remove comments and fill if you need to have entries in php.ini
PHP_INI_BEGIN()
STD_PHP_INI_ENTRY("grpc.global_value", "42", PHP_INI_ALL, OnUpdateLong,
示例2: PHP_FALIAS
PHP_FALIAS(fbird_set_event_handler, ibase_set_event_handler, arginfo_ibase_set_event_handler)
PHP_FALIAS(fbird_free_event_handler, ibase_free_event_handler, arginfo_ibase_free_event_handler)
PHP_FE_END
};
zend_module_entry ibase_module_entry = {
STANDARD_MODULE_HEADER,
"interbase",
ibase_functions,
PHP_MINIT(ibase),
PHP_MSHUTDOWN(ibase),
NULL,
PHP_RSHUTDOWN(ibase),
PHP_MINFO(ibase),
NO_VERSION_YET,
PHP_MODULE_GLOBALS(ibase),
PHP_GINIT(ibase),
NULL,
NULL,
STANDARD_MODULE_PROPERTIES_EX
};
#ifdef COMPILE_DL_INTERBASE
ZEND_GET_MODULE(ibase)
#endif
/* True globals, no need for thread safety */
int le_link, le_plink, le_trans;
/* }}} */
示例3: PHP_MINIT
zend_module_entry g_pdo_sqlsrv_module_entry =
{
STANDARD_MODULE_HEADER_EX,
NULL,
pdo_sqlsrv_depends,
"pdo_sqlsrv",
pdo_sqlsrv_functions, // exported function table
// initialization and shutdown functions
PHP_MINIT(pdo_sqlsrv),
PHP_MSHUTDOWN(pdo_sqlsrv),
PHP_RINIT(pdo_sqlsrv),
PHP_RSHUTDOWN(pdo_sqlsrv),
PHP_MINFO(pdo_sqlsrv),
// version of the extension. Matches the version resource of the extension dll
VER_FILEVERSION_STR,
PHP_MODULE_GLOBALS(pdo_sqlsrv),
NULL,
NULL,
NULL,
STANDARD_MODULE_PROPERTIES_EX
};
// functions dynamically linked from the PDO (or PHP) dll and called by other parts of the driver
zend_class_entry* (*pdo_get_exception_class)( void );
int (*pdo_subst_named_params)(pdo_stmt_t *stmt, char *inquery, int inquery_len,
char **outquery, int *outquery_len TSRMLS_DC);
// Module initialization
// This function is called once per execution of the Zend engine
PHP_MINIT_FUNCTION(pdo_sqlsrv)
示例4: PHP_MINIT
/* }}} */
/* {{{ smd_module_entry
*/
zend_module_entry smd_module_entry = {
STANDARD_MODULE_HEADER,
"smd",
smd_functions,
PHP_MINIT(smd), /* PHP_MINIT */
NULL, /* PHP_MSHUTDOWN */
PHP_RINIT(smd), /* PHP_RINIT */
PHP_RSHUTDOWN(smd), /* PHP_RSHUTDOWN */
PHP_MINFO(smd),
SMD_VERSION,
PHP_MODULE_GLOBALS(smd),
PHP_GINIT(smd), /* PHP_GINIT*/
NULL, /* PHP_GSHUTDOWN */
NULL,
STANDARD_MODULE_PROPERTIES_EX
};
/* }}} */
#ifdef COMPILE_DL_SMD
#ifdef ZTS
ZEND_TSRMLS_CACHE_DEFINE();
#endif
ZEND_GET_MODULE(smd)
#endif
/* {{{ PHP_INI
示例5: PHP_MINIT
zend_module_entry pdo_module_entry = {
#if ZEND_MODULE_API_NO >= 20050922
STANDARD_MODULE_HEADER_EX, NULL,
pdo_deps,
#else
STANDARD_MODULE_HEADER,
#endif
"PDO",
pdo_functions,
PHP_MINIT(pdo),
PHP_MSHUTDOWN(pdo),
NULL,
NULL,
PHP_MINFO(pdo),
"1.0.4dev",
PHP_MODULE_GLOBALS(pdo),
PHP_GINIT(pdo),
NULL,
NULL,
STANDARD_MODULE_PROPERTIES_EX
};
/* }}} */
/* TODO: visit persistent handles: for each persistent statement handle,
* remove bound parameter associations */
#ifdef COMPILE_DL_PDO
ZEND_GET_MODULE(pdo)
#endif
/* {{{ PHP_GINIT_FUNCTION */
示例6: PHP_FE
PHP_FE(bccomp, arginfo_bccomp)
PHP_FE(bcpowmod, arginfo_bcpowmod)
PHP_FE_END
};
zend_module_entry bcmath_module_entry = {
STANDARD_MODULE_HEADER,
"bcmath",
bcmath_functions,
PHP_MINIT(bcmath),
PHP_MSHUTDOWN(bcmath),
NULL,
NULL,
PHP_MINFO(bcmath),
NO_VERSION_YET,
PHP_MODULE_GLOBALS(bcmath),
PHP_GINIT(bcmath),
PHP_GSHUTDOWN(bcmath),
NULL,
STANDARD_MODULE_PROPERTIES_EX
};
#ifdef COMPILE_DL_BCMATH
#ifdef ZTS
ZEND_TSRMLS_CACHE_DEFINE;
#endif
ZEND_GET_MODULE(bcmath)
#endif
/* {{{ PHP_INI */
PHP_INI_BEGIN()
示例7: ZEND_DECLARE_MODULE_GLOBALS
ZEND_DECLARE_MODULE_GLOBALS(ereg)
static PHP_GINIT_FUNCTION(ereg);
static PHP_GSHUTDOWN_FUNCTION(ereg);
/* {{{ Module entry */
zend_module_entry ereg_module_entry = {
STANDARD_MODULE_HEADER,
"ereg",
ereg_functions,
NULL,
NULL,
NULL,
NULL,
PHP_MINFO(ereg),
NO_VERSION_YET,
PHP_MODULE_GLOBALS(ereg),
PHP_GINIT(ereg),
PHP_GSHUTDOWN(ereg),
NULL,
STANDARD_MODULE_PROPERTIES_EX
};
/* }}} */
/* {{{ COMPILE_DL_EREG */
#ifdef COMPILE_DL_EREG
ZEND_GET_MODULE(ereg)
#endif
/* }}} */
/* {{{ ereg_lru_cmp */
static int ereg_lru_cmp(const void *a, const void *b)
示例8: PHP_MINIT
};
/* }}} */
/* {{{ ezc_test_module_entry
*/
zend_module_entry ezc_test_module_entry = {
STANDARD_MODULE_HEADER,
"ezc_test",
ezc_test_functions,
PHP_MINIT(ezc_test),
PHP_MSHUTDOWN(ezc_test),
PHP_RINIT(ezc_test),
PHP_RSHUTDOWN(ezc_test),
PHP_MINFO(ezc_test),
PHP_EZC_TEST_VERSION,
PHP_MODULE_GLOBALS(ezc_test),
PHP_GINIT(ezc_test),
PHP_GSHUTDOWN(ezc_test),
ezc_test_post_deactivate,
STANDARD_MODULE_PROPERTIES_EX
};
/* }}} */
#ifdef COMPILE_DL_EZC_TEST
ZEND_GET_MODULE(ezc_test)
#endif
/*
* Local variables:
* tab-width: 4
示例9: PHP_MINIT
}
/* }}} */
/* {{{ posix_module_entry
*/
zend_module_entry posix_module_entry = {
STANDARD_MODULE_HEADER,
"posix",
posix_functions,
PHP_MINIT(posix),
NULL,
NULL,
NULL,
PHP_MINFO(posix),
NO_VERSION_YET,
PHP_MODULE_GLOBALS(posix),
PHP_GINIT(posix),
NULL,
NULL,
STANDARD_MODULE_PROPERTIES_EX
};
/* }}} */
#ifdef COMPILE_DL_POSIX
ZEND_GET_MODULE(posix)
#endif
#define PHP_POSIX_NO_ARGS if (zend_parse_parameters_none() == FAILURE) return;
#define PHP_POSIX_RETURN_LONG_FUNC(func_name) \
PHP_POSIX_NO_ARGS \
示例10: PHP_FE
PHP_FE(pcntl_sigtimedwait, arginfo_pcntl_sigtimedwait)
#endif
PHP_FE_END
};
zend_module_entry pcntl_module_entry = {
STANDARD_MODULE_HEADER,
"pcntl",
pcntl_functions,
PHP_MINIT(pcntl),
PHP_MSHUTDOWN(pcntl),
PHP_RINIT(pcntl),
PHP_RSHUTDOWN(pcntl),
PHP_MINFO(pcntl),
NO_VERSION_YET,
PHP_MODULE_GLOBALS(pcntl),
PHP_GINIT(pcntl),
NULL,
NULL,
STANDARD_MODULE_PROPERTIES_EX
};
#ifdef COMPILE_DL_PCNTL
ZEND_GET_MODULE(pcntl)
#endif
static void pcntl_signal_handler(int);
static void pcntl_signal_dispatch();
void php_register_signal_constants(INIT_FUNC_ARGS)
{
示例11: PHP_MINIT
"mime_magic",
mime_magic_functions,
PHP_MINIT(mime_magic),
PHP_MSHUTDOWN(mime_magic),
NULL,
NULL,
#if WANT_INI
PHP_MINFO(mime_magic),
#else
NULL,
#endif
#if ZEND_MODULE_API_NO >= 20010901
"0.1",
#endif
#if ZEND_MODULE_API_NO >= 20060613
PHP_MODULE_GLOBALS(mime_magic),
PHP_GINIT(mime_magic),
NULL,
NULL,
STANDARD_MODULE_PROPERTIES_EX
#else
STANDARD_MODULE_PROPERTIES
#endif
};
/* }}} */
#ifdef COMPILE_DL_MIME_MAGIC
ZEND_GET_MODULE(mime_magic)
#endif
/* {{{ PHP_INI
示例12: PHP_MINIT
#if ZEND_MODULE_API_NO >= 20050617
STANDARD_MODULE_HEADER_EX, NULL, php_cassandra_deps,
#elif ZEND_MODULE_API_NO >= 20010901
STANDARD_MODULE_HEADER,
#endif
PHP_CASSANDRA_NAME,
cassandra_functions, /* Functions */
PHP_MINIT(cassandra), /* MINIT */
PHP_MSHUTDOWN(cassandra), /* MSHUTDOWN */
PHP_RINIT(cassandra), /* RINIT */
PHP_RSHUTDOWN(cassandra), /* RSHUTDOWN */
PHP_MINFO(cassandra), /* MINFO */
#if ZEND_MODULE_API_NO >= 20010901
PHP_CASSANDRA_VERSION,
#endif
PHP_MODULE_GLOBALS(cassandra),
PHP_GINIT(cassandra),
PHP_GSHUTDOWN(cassandra),
NULL,
STANDARD_MODULE_PROPERTIES_EX
};
#ifdef COMPILE_DL_CASSANDRA
ZEND_GET_MODULE(cassandra)
#endif
static void
php_cassandra_log(const CassLogMessage* message, void* data);
void
php_cassandra_log_cleanup()
示例13: PHP_MINIT
};
/* }}} */
/* {{{ oop_module_entry
*/
zend_module_entry oop_module_entry = {
STANDARD_MODULE_HEADER,
"oop",
oop_functions,
PHP_MINIT(oop),
PHP_MSHUTDOWN(oop),
PHP_RINIT(oop), /* Replace with NULL if there's nothing to do at request start */
PHP_RSHUTDOWN(oop), /* Replace with NULL if there's nothing to do at request end */
PHP_MINFO(oop),
PHP_OOP_VERSION,
PHP_MODULE_GLOBALS(oop),
PHP_GINIT(oop),
PHP_GSHUTDOWN(oop),
NULL,
STANDARD_MODULE_PROPERTIES_EX
};
/* }}} */
#ifdef COMPILE_DL_OOP
#ifdef ZTS
ZEND_TSRMLS_CACHE_DEFINE();
#endif
ZEND_GET_MODULE(oop)
#endif
示例14: PHP_MINIT
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) {
}
static PHP_GSHUTDOWN_FUNCTION(protobuf) {
}
示例15: PHP_FE
static zend_function_entry global_functions[] = {
PHP_FE(global_inc, NULL)
PHP_FE(global_get, NULL)
PHP_FE(global_name, NULL)
{
NULL, NULL, NULL
}
};
zend_module_entry global_module_entry = {
STANDARD_MODULE_HEADER,
"global", /* extname */
global_functions,
NULL, /* MINIT */
NULL, /* MSHUTDOWN */
PHP_RINIT(global),
PHP_RSHUTDOWN(global),
NULL, /* MINFO */
NO_VERSION_YET,
PHP_MODULE_GLOBALS(global),
NULL, /* GINIT */
NULL, /* GSHUTDOWN */
NULL, /* RPOSTSHUTDOWN */
STANDARD_MODULE_PROPERTIES_EX
};
#ifdef COMPILE_DL_GLOBAL
ZEND_GET_MODULE(global)
#endif