projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
b86d629
)
- need module number for registering constants
author
Michael Wallner
<mike@php.net>
Mon, 30 May 2005 12:35:17 +0000
(12:35 +0000)
committer
Michael Wallner
<mike@php.net>
Mon, 30 May 2005 12:35:17 +0000
(12:35 +0000)
http.c
patch
|
blob
|
history
php_http.h
patch
|
blob
|
history
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); }
#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)
{
/* {{{ PHP_MINIT_FUNCTION */
PHP_MINIT_FUNCTION(http)
{
+ http_module_number = module_number;
+
ZEND_INIT_MODULE_GLOBALS(http, NULL, NULL);
REGISTER_INI_ENTRIES();
ZEND_INIT_MODULE_GLOBALS(http, NULL, NULL);
REGISTER_INI_ENTRIES();
diff --git
a/php_http.h
b/php_http.h
index 9b9b1e707bcc7ffbe85233a8acee001a1e49d16e..f9d95a8433853f7b4add6251b38c51206130394b 100644
(file)
--- 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 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 {
ZEND_BEGIN_MODULE_GLOBALS(http)
struct _http_globals_etag {