From: Michael Wallner Date: Mon, 30 May 2005 12:35:17 +0000 (+0000) Subject: - need module number for registering constants X-Git-Tag: RELEASE_0_8_0~12 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=ce14c30128d4e944ce1daf9e31ca7cea4f0ee3e2;hp=b86d629d9dcddf60e3b3abb3368f7fdab1879e7b - need module number for registering constants --- diff --git a/http.c b/http.c index 7b90bd0..ce1a398 100644 --- a/http.c +++ b/http.c @@ -155,6 +155,8 @@ zend_module_entry http_module_entry = { }; /* }}} */ +int http_module_number; + #ifdef HTTP_HAVE_CURL # ifdef HTTP_CURL_USE_ZEND_MM static void http_curl_free(void *p) { efree(p); } @@ -215,6 +217,8 @@ PHP_INI_END() /* {{{ PHP_MINIT_FUNCTION */ PHP_MINIT_FUNCTION(http) { + http_module_number = module_number; + ZEND_INIT_MODULE_GLOBALS(http, NULL, NULL); REGISTER_INI_ENTRIES(); diff --git a/php_http.h b/php_http.h index 9b9b1e7..f9d95a8 100644 --- a/php_http.h +++ b/php_http.h @@ -33,6 +33,8 @@ extern zend_module_entry http_module_entry; #define phpext_http_ptr &http_module_entry +extern int http_module_number; + ZEND_BEGIN_MODULE_GLOBALS(http) struct _http_globals_etag {