X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=http.c;h=a09fa61251c00ef05931b74d512aaf1072636d6c;hb=5927520464dd6dc3aac3298ca05a1105740be3bd;hp=7b90bd01d98dc5d6e93f7de1cbdd4bb092d1f6fa;hpb=781c90c0447166dd52ef881ae15751fa466c32fb;p=m6w6%2Fext-http diff --git a/http.c b/http.c index 7b90bd0..a09fa61 100644 --- 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_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) @@ -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); } @@ -215,6 +218,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();