projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- move that at the end for PHP4
[m6w6/ext-http]
/
http.c
diff --git
a/http.c
b/http.c
index 7b90bd01d98dc5d6e93f7de1cbdd4bb092d1f6fa..a09fa61251c00ef05931b74d512aaf1072636d6c 100644
(file)
--- a/
http.c
+++ b/
http.c
@@
-114,6
+114,7
@@
function_entry http_functions[] = {
PHP_FE(http_split_response, NULL)
PHP_FE(http_parse_headers, NULL)
PHP_FE(http_get_request_headers, NULL)
PHP_FE(http_split_response, NULL)
PHP_FE(http_parse_headers, NULL)
PHP_FE(http_get_request_headers, NULL)
+ PHP_FE(http_match_request_header, NULL)
#ifdef HTTP_HAVE_CURL
PHP_FE(http_get, http_request_info_ref_3)
PHP_FE(http_head, http_request_info_ref_3)
#ifdef HTTP_HAVE_CURL
PHP_FE(http_get, http_request_info_ref_3)
PHP_FE(http_head, http_request_info_ref_3)
@@
-155,6
+156,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
+218,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();