From ce14c30128d4e944ce1daf9e31ca7cea4f0ee3e2 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Mon, 30 May 2005 12:35:17 +0000 Subject: [PATCH] - need module number for registering constants --- http.c | 4 ++++ php_http.h | 2 ++ 2 files changed, 6 insertions(+) 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 { -- 2.30.2