示例#1
0
    }
    if (hprose_globals->cache2) {
        zend_hash_destroy(hprose_globals->cache2);
        FREE_HASHTABLE(hprose_globals->cache2);
        hprose_globals->cache2 = NULL;
    }
}

/* compiled module information */
zend_module_entry hprose_module_entry = {
    STANDARD_MODULE_HEADER,
    PHP_HPROSE_MODULE_NAME,        /* extension name */
    hprose_functions,              /* function list */
    ZEND_MINIT(hprose),            /* process startup */
    ZEND_MSHUTDOWN(hprose),        /* process shutdown */
    ZEND_RINIT(hprose),            /* request startup */
    ZEND_RSHUTDOWN(hprose),        /* request shutdown */
    ZEND_MINFO(hprose),            /* extension info */
    PHP_HPROSE_VERSION,            /* extension version */
    ZEND_MODULE_GLOBALS(hprose),   /* globals descriptor */
    ZEND_GINIT(hprose),            /* globals ctor */
    ZEND_GSHUTDOWN(hprose),        /* globals dtor */
    NULL,                          /* post deactivate */
    STANDARD_MODULE_PROPERTIES_EX
};

#ifdef COMPILE_DL_HPROSE
#if PHP_MAJOR_VERSION >= 7 && defined(ZTS)
ZEND_TSRMLS_CACHE_DEFINE();
#endif
ZEND_GET_MODULE(hprose)
示例#2
0
    php_info_print_table_row(2, "msgpacki support", "enabled");
    php_info_print_table_row(2, "extension version", MSGPACKI_EXT_VERSION);
#if HAVE_PHP_SESSION
    php_info_print_table_row(2, "session support", "enabled" );
#endif
    php_info_print_table_end();

    DISPLAY_INI_ENTRIES();
}

zend_module_entry msgpacki_module_entry = {
#if ZEND_MODULE_API_NO >= 20010901
    STANDARD_MODULE_HEADER,
#endif
    "msgpacki",
    msgpacki_functions,
    ZEND_MINIT(msgpacki),
    ZEND_MSHUTDOWN(msgpacki),
    ZEND_RINIT(msgpacki),
    ZEND_RSHUTDOWN(msgpacki),
    ZEND_MINFO(msgpacki),
#if ZEND_MODULE_API_NO >= 20010901
    MSGPACKI_EXT_VERSION,
#endif
    STANDARD_MODULE_PROPERTIES
};

#ifdef COMPILE_DL_MSGPACKI
ZEND_GET_MODULE(msgpacki)
#endif
示例#3
0
int le_cpuid;

static zend_function_entry cpuid_functions[] = {
    ZEND_FE(cpuid, NULL)
    {NULL, NULL, NULL}
};

zend_module_entry cpuid_module_entry = {
#if ZEND_MODULE_API_NO >= 20010901
    STANDARD_MODULE_HEADER,
#endif
    PHP_CPUID_EXTNAME,
    cpuid_functions,
    ZEND_MINIT(cpuid),
    ZEND_MSHUTDOWN(cpuid),
    ZEND_RINIT(cpuid),
    NULL,
	ZEND_MINFO(cpuid),
#if ZEND_MODULE_API_NO >= 20010901
	PHP_CPUID_VERSION,
#endif
	STANDARD_MODULE_PROPERTIES
};

static void php_cpuid_dtor(zend_rsrc_list_entry *resource TSRMLS_DC)
{

}

ZEND_RINIT_FUNCTION(cpuid)
{