- need module number for registering constants
authorMichael Wallner <mike@php.net>
Mon, 30 May 2005 12:35:17 +0000 (12:35 +0000)
committerMichael Wallner <mike@php.net>
Mon, 30 May 2005 12:35:17 +0000 (12:35 +0000)
http.c
php_http.h

diff --git a/http.c b/http.c
index 7b90bd01d98dc5d6e93f7de1cbdd4bb092d1f6fa..ce1a3988c8133c294e4eaa6090173b3139d0b699 100644 (file)
--- 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();
 
index 9b9b1e707bcc7ffbe85233a8acee001a1e49d16e..f9d95a8433853f7b4add6251b38c51206130394b 100644 (file)
@@ -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 {