本文整理汇总了C++中PHP_MODULE_GLOBALS函数的典型用法代码示例。如果您正苦于以下问题:C++ PHP_MODULE_GLOBALS函数的具体用法?C++ PHP_MODULE_GLOBALS怎么用?C++ PHP_MODULE_GLOBALS使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PHP_MODULE_GLOBALS函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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,
开发者ID:kpayson64,项目名称:grpc,代码行数:31,代码来源:php_grpc.c
示例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;
/* }}} */
开发者ID:consynia,项目名称:php-src,代码行数:30,代码来源:interbase.c
示例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)
开发者ID:Aymax,项目名称:msphpsql,代码行数:31,代码来源:pdo_init.cpp
示例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
开发者ID:buglloc,项目名称:php-smd,代码行数:31,代码来源:smd.c
示例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 */
开发者ID:0x1111,项目名称:php-src,代码行数:31,代码来源:pdo.c
示例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()
开发者ID:ahamid,项目名称:php-src,代码行数:31,代码来源:bcmath.c
示例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)
开发者ID:AmesianX,项目名称:php-src,代码行数:31,代码来源:ereg.c
示例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
开发者ID:CheJharia,项目名称:hhvm,代码行数:31,代码来源:ezc_test.cpp
示例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 \
开发者ID:rogerhu,项目名称:dd-wrt,代码行数:31,代码来源:posix.c
示例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)
{
开发者ID:oasynnoum,项目名称:ore-php,代码行数:31,代码来源:pcntl.c
示例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
开发者ID:kennyb,项目名称:php-broken,代码行数:31,代码来源:mime_magic.c
示例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()
开发者ID:moarty,项目名称:php-driver,代码行数:31,代码来源:php_cassandra.c
示例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
开发者ID:codebear4,项目名称:php-ext-oop,代码行数:29,代码来源:oop.c
示例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) {
}
开发者ID:maniacs-ops,项目名称:protobuf,代码行数:30,代码来源:protobuf.c
示例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
开发者ID:keyganker,项目名称:phptek2013,代码行数:29,代码来源:php_global.c
示例16: PHP_MINIT
// this structure is defined in zend_modules.h in the PHP sources
zend_module_entry g_sqlsrv_module_entry =
{
STANDARD_MODULE_HEADER,
"sqlsrv",
sqlsrv_functions, // exported function table
// initialization and shutdown functions
PHP_MINIT(sqlsrv),
PHP_MSHUTDOWN(sqlsrv),
PHP_RINIT(sqlsrv),
PHP_RSHUTDOWN(sqlsrv),
PHP_MINFO(sqlsrv),
// version of the extension. Matches the version resource of the extension dll
VER_FILEVERSION_STR,
PHP_MODULE_GLOBALS(sqlsrv),
NULL,
NULL,
NULL,
STANDARD_MODULE_PROPERTIES_EX
};
// Module initialization
// This function is called once per execution of the Zend engine
// We use it to:
// 1) Register our constants. See MSDN or the function below for the exact constants
// we register.
// 2) Register our resource types (connection, statement, and stream types)
// 3) Allocate the environment handles for ODBC connections (1 for non pooled
// connections and 1 for pooled connections)
// 4) Register our INI entries. See MSDN or php_sqlsrv.h for our supported INI entries
开发者ID:Yinux,项目名称:msphpsql,代码行数:31,代码来源:init.cpp
示例17: PHP_MINIT
zend_module_entry xml_module_entry = {
#ifdef LIBXML_EXPAT_COMPAT
STANDARD_MODULE_HEADER_EX, NULL,
xml_deps,
#else
STANDARD_MODULE_HEADER,
#endif
"xml", /* extension name */
xml_functions, /* extension function list */
PHP_MINIT(xml), /* extension-wide startup function */
NULL, /* extension-wide shutdown function */
NULL, /* per-request startup function */
NULL, /* per-request shutdown function */
PHP_MINFO(xml), /* information function */
NO_VERSION_YET,
PHP_MODULE_GLOBALS(xml), /* globals descriptor */
PHP_GINIT(xml), /* globals ctor */
NULL, /* globals dtor */
NULL, /* post deactivate */
STANDARD_MODULE_PROPERTIES_EX
};
/* All the encoding functions are set to NULL right now, since all
* the encoding is currently done internally by expat/xmltok.
*/
xml_encoding xml_encodings[] = {
{ (XML_Char *)"ISO-8859-1", xml_decode_iso_8859_1, xml_encode_iso_8859_1 },
{ (XML_Char *)"US-ASCII", xml_decode_us_ascii, xml_encode_us_ascii },
{ (XML_Char *)"UTF-8", NULL, NULL },
{ (XML_Char *)NULL, NULL, NULL }
};
开发者ID:0x1111,项目名称:php-src,代码行数:31,代码来源:xml.c
示例18: DBA_G
#define DBA_G(v) (dba_globals.v)
#endif
static PHP_GINIT_FUNCTION(dba);
zend_module_entry dba_module_entry = {
STANDARD_MODULE_HEADER,
"dba",
dba_functions,
PHP_MINIT(dba),
PHP_MSHUTDOWN(dba),
NULL,
NULL,
PHP_MINFO(dba),
NO_VERSION_YET,
PHP_MODULE_GLOBALS(dba),
PHP_GINIT(dba),
NULL,
NULL,
STANDARD_MODULE_PROPERTIES_EX
};
#ifdef COMPILE_DL_DBA
ZEND_GET_MODULE(dba)
#endif
/* {{{ macromania */
#define DBA_ID_PARS \
zval *id; \
dba_info *info = NULL; \
开发者ID:0x1111,项目名称:php-src,代码行数:31,代码来源:dba.c
示例19: ZEND_MOD_OPTIONAL
ZEND_MOD_OPTIONAL("openssl")
ZEND_MOD_END
};
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
static PHP_INI_MH(OnUpdatePingInterval)
{
long converted_val;
开发者ID:Hyacinth,项目名称:mongo-php-driver,代码行数:30,代码来源:php_mongo.c
示例20: defined
#endif
#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,
开发者ID:asmlib,项目名称:php-7.0.7,代码行数:31,代码来源:pdo_dblib.c
注:本文中的PHP_MODULE_GLOBALS函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论