本文整理汇总了C++中PHP_GINIT函数的典型用法代码示例。如果您正苦于以下问题:C++ PHP_GINIT函数的具体用法?C++ PHP_GINIT怎么用?C++ PHP_GINIT使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PHP_GINIT函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: PHP_MINIT
ad_config_deps,
#else
STANDARD_MODULE_HEADER,
#endif
"ad_config",
ad_config_functions,
PHP_MINIT(ad_config),
PHP_MSHUTDOWN(ad_config),
PHP_RINIT(ad_config), /* Replace with NULL if there's nothing to do at request start */
PHP_RSHUTDOWN(ad_config), /* Replace with NULL if there's nothing to do at request end */
PHP_MINFO(ad_config),
#if ZEND_MODULE_API_NO >= 20010901
"0.1", /* Replace with version number for your extension */
#endif
PHP_MODULE_GLOBALS(ad_config),
PHP_GINIT(ad_config),
NULL,
NULL,
STANDARD_MODULE_PROPERTIES_EX
};
/* }}} */
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* End:
* vim600: noet sw=4 ts=4 fdm=marker
* vim<600: noet sw=4 ts=4
示例2: PHP_MSHUTDOWN_FUNCTION
static PHP_MSHUTDOWN_FUNCTION(mcrypt);
static PHP_GINIT_FUNCTION(mcrypt);
static PHP_GSHUTDOWN_FUNCTION(mcrypt);
ZEND_DECLARE_MODULE_GLOBALS(mcrypt)
zend_module_entry mcrypt_module_entry = {
STANDARD_MODULE_HEADER,
"mcrypt",
mcrypt_functions,
PHP_MINIT(mcrypt), PHP_MSHUTDOWN(mcrypt),
NULL, NULL,
PHP_MINFO(mcrypt),
PHP_MCRYPT_VERSION,
PHP_MODULE_GLOBALS(mcrypt),
PHP_GINIT(mcrypt),
PHP_GSHUTDOWN(mcrypt),
NULL,
STANDARD_MODULE_PROPERTIES_EX
};
#ifdef COMPILE_DL_MCRYPT
#ifdef ZTS
ZEND_TSRMLS_CACHE_DEFINE()
#endif
ZEND_GET_MODULE(mcrypt)
#endif
#define MCRYPT_ENCRYPT 0
#define MCRYPT_DECRYPT 1
示例3: PHP_MINIT
/* {{{ json_module_entry
*/
zend_module_entry json_module_entry = {
STANDARD_MODULE_HEADER,
"json",
json_functions,
PHP_MINIT(json),
NULL,
NULL,
NULL,
PHP_MINFO(json),
PHP_JSON_VERSION,
PHP_MODULE_GLOBALS(json),
PHP_GINIT(json),
NULL,
NULL,
STANDARD_MODULE_PROPERTIES_EX
};
/* }}} */
#ifdef COMPILE_DL_JSON
ZEND_GET_MODULE(json)
#endif
/* {{{ PHP_MINFO_FUNCTION
*/
static PHP_MINFO_FUNCTION(json)
{
php_info_print_table_start();
示例4: PHP_MINIT
#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)
{
示例5: 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) {
}
示例6: 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_NUM_ARGS()) WRONG_PARAM_COUNT;
#define PHP_POSIX_RETURN_LONG_FUNC(func_name) \
PHP_POSIX_NO_ARGS \
RETURN_LONG(func_name());
示例7: PHP_MINIT
#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 */
static PHP_GINIT_FUNCTION(pdo)
示例8: PHP_MINIT
NULL,
yaml_deps,
#else
STANDARD_MODULE_HEADER,
#endif
"yaml",
yaml_functions,
PHP_MINIT(yaml),
PHP_MSHUTDOWN(yaml),
NULL, /* RINIT */
NULL, /* RSHUTDOWN */
PHP_MINFO(yaml),
PHP_YAML_MODULE_VERSION,
#if ZEND_EXTENSION_API_NO >= 220060519
PHP_MODULE_GLOBALS(yaml),
PHP_GINIT(yaml),
NULL,
NULL,
STANDARD_MODULE_PROPERTIES_EX
#else
STANDARD_MODULE_PROPERTIES
#endif
};
/* }}} */
#ifdef COMPILE_DL_YAML
ZEND_GET_MODULE(yaml)
#endif
示例9: PHP_MINIT
/* }}} */
/* {{{ libpuzzle5_module_entry
*/
zend_module_entry libpuzzle5_module_entry = {
STANDARD_MODULE_HEADER,
"libpuzzle5",
libpuzzle5_functions,
PHP_MINIT(libpuzzle5),
PHP_MSHUTDOWN(libpuzzle5),
PHP_RINIT(libpuzzle5),
PHP_RSHUTDOWN(libpuzzle5),
PHP_MINFO(libpuzzle5),
NO_VERSION_YET,
PHP_MODULE_GLOBALS(libpuzzle5),
PHP_GINIT(libpuzzle5),
PHP_GSHUTDOWN(libpuzzle5),
NULL,
STANDARD_MODULE_PROPERTIES_EX
};
/* }}} */
#ifdef COMPILE_DL_LIBPUZZLE5
ZEND_GET_MODULE(libpuzzle5)
#endif
/* {{{ PHP_GINIT_FUNCTION
*/
PHP_GINIT_FUNCTION(libpuzzle5)
{
示例10: PHP_MINIT
zend_module_entry stomp_module_entry = {
#if ZEND_MODULE_API_NO >= 20010901
STANDARD_MODULE_HEADER,
#endif
PHP_STOMP_EXTNAME,
stomp_functions,
PHP_MINIT(stomp),
PHP_MSHUTDOWN(stomp),
PHP_RINIT(stomp),
PHP_RSHUTDOWN(stomp),
PHP_MINFO(stomp),
#if ZEND_MODULE_API_NO >= 20010901
PHP_STOMP_VERSION,
#endif
PHP_MODULE_GLOBALS(stomp),
PHP_GINIT(stomp),
NULL,
NULL,
STANDARD_MODULE_PROPERTIES_EX
};
/* }}} */
PHP_INI_BEGIN()
STD_PHP_INI_ENTRY("stomp.default_broker", "tcp://localhost:61613", PHP_INI_ALL, OnUpdateString, default_broker, zend_stomp_globals, stomp_globals)
STD_PHP_INI_ENTRY("stomp.default_username", "", PHP_INI_ALL, OnUpdateString, default_username, zend_stomp_globals, stomp_globals)
STD_PHP_INI_ENTRY("stomp.default_password", "", PHP_INI_ALL, OnUpdateString, default_password, zend_stomp_globals, stomp_globals)
STD_PHP_INI_ENTRY("stomp.default_read_timeout_sec", "2", PHP_INI_ALL, OnUpdateLong, read_timeout_sec, zend_stomp_globals, stomp_globals)
STD_PHP_INI_ENTRY("stomp.default_read_timeout_usec", "0", PHP_INI_ALL, OnUpdateLong, read_timeout_usec, zend_stomp_globals, stomp_globals)
STD_PHP_INI_ENTRY("stomp.default_connection_timeout_sec", "2", PHP_INI_ALL, OnUpdateLong, connection_timeout_sec, zend_stomp_globals, stomp_globals)
STD_PHP_INI_ENTRY("stomp.default_connection_timeout_usec", "0", PHP_INI_ALL, OnUpdateLong, connection_timeout_usec, zend_stomp_globals, stomp_globals)
PHP_INI_END()
示例11: PHP_GINIT_FUNCTION
static PHP_GINIT_FUNCTION(intl);
/* {{{ intl_module_entry */
zend_module_entry intl_module_entry = {
STANDARD_MODULE_HEADER,
"intl",
intl_functions,
PHP_MINIT( intl ),
PHP_MSHUTDOWN( intl ),
PHP_RINIT( intl ),
PHP_RSHUTDOWN( intl ),
PHP_MINFO( intl ),
INTL_MODULE_VERSION,
PHP_MODULE_GLOBALS(intl), /* globals descriptor */
PHP_GINIT(intl), /* globals ctor */
NULL, /* globals dtor */
NULL, /* post deactivate */
STANDARD_MODULE_PROPERTIES_EX
};
/* }}} */
#ifdef COMPILE_DL_INTL
#ifdef ZTS
ZEND_TSRMLS_CACHE_DEFINE()
#endif
ZEND_GET_MODULE( intl )
#endif
/* {{{ intl_init_globals */
static PHP_GINIT_FUNCTION(intl)
示例12: defined
#if PDO_DBLIB_IS_MSSQL
"pdo_mssql",
#elif defined(PHP_WIN32)
"pdo_sybase",
#else
"pdo_dblib",
#endif
pdo_dblib_functions,
PHP_MINIT(pdo_dblib),
PHP_MSHUTDOWN(pdo_dblib),
NULL,
PHP_RSHUTDOWN(pdo_dblib),
PHP_MINFO(pdo_dblib),
PHP_PDO_DBLIB_VERSION,
PHP_MODULE_GLOBALS(dblib),
PHP_GINIT(dblib),
NULL,
NULL,
STANDARD_MODULE_PROPERTIES_EX
};
#if defined(COMPILE_DL_PDO_DBLIB) || defined(COMPILE_DL_PDO_MSSQL)
#if PDO_DBLIB_IS_MSSQL
ZEND_GET_MODULE(pdo_mssql)
#else
ZEND_GET_MODULE(pdo_dblib)
#endif
#endif
int pdo_dblib_error_handler(DBPROCESS *dbproc, int severity, int dberr,
int oserr, char *dberrstr, char *oserrstr)
示例13: PHP_MINIT
zend_module_entry signal_handler_module_entry = {
#if ZEND_MODULE_API_NO >= 20010901
STANDARD_MODULE_HEADER,
#endif
"signal_handler",
signal_handler_functions,
PHP_MINIT(signal_handler),
PHP_MSHUTDOWN(signal_handler),
PHP_RINIT(signal_handler),
PHP_RSHUTDOWN(signal_handler),
PHP_MINFO(signal_handler),
#if ZEND_MODULE_API_NO >= 20010901
PHP_SIGNAL_HANDLER_VERSION,
#endif
PHP_MODULE_GLOBALS(signal_handler),
PHP_GINIT(signal_handler),
NULL,
NULL,
STANDARD_MODULE_PROPERTIES_EX
};
/* }}} */
#ifdef COMPILE_DL_SIGNAL_HANDLER
ZEND_GET_MODULE(signal_handler)
#endif
/* {{{ PHP_GINIT_FUNCTION
*/
static PHP_GINIT_FUNCTION(signal_handler)
{
memset(signal_handler_globals, 0, sizeof(*signal_handler_globals));
示例14: ZEND_MOD_OPTIONAL
ZEND_MOD_OPTIONAL("mcrypt")
ZEND_MOD_OPTIONAL("openssl")
ZEND_MOD_OPTIONAL("pdo")
ZEND_MOD_OPTIONAL("gd")
ZEND_MOD_OPTIONAL("imagick")
ZEND_MOD_END
};
zend_module_entry phalcon_module_entry = {
STANDARD_MODULE_HEADER_EX,
ini_entries,
phalcon_deps,
PHP_PHALCON_EXTNAME,
NULL,
PHP_MINIT(phalcon),
PHP_MSHUTDOWN(phalcon),
PHP_RINIT(phalcon),
PHP_RSHUTDOWN(phalcon),
PHP_MINFO(phalcon),
PHP_PHALCON_VERSION,
ZEND_MODULE_GLOBALS(phalcon),
PHP_GINIT(phalcon),
PHP_GSHUTDOWN(phalcon),
ZEND_MODULE_POST_ZEND_DEACTIVATE_N(phalcon),
STANDARD_MODULE_PROPERTIES_EX
};
#ifdef COMPILE_DL_PHALCON
ZEND_GET_MODULE(phalcon)
#endif
示例15: 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,
global_value, zend_grpc_globals, grpc_globals)