X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http.c;h=244c423d92e59a2c170abd94b64b99f94acf1a93;hp=a4b430a6812a5e6cec58e9f63554de080bd8641a;hb=34644fd4c700fb55c3a2c2ff9966d0f5e7572509;hpb=8d25696948ed61d50c417275222117f43069ddd1 diff --git a/http.c b/http.c index a4b430a..244c423 100644 --- a/http.c +++ b/http.c @@ -18,6 +18,8 @@ #endif #include "php.h" +#include "zend_extensions.h" + #include "SAPI.h" #include "php_ini.h" #include "ext/standard/info.h" @@ -28,6 +30,7 @@ #include "php_http_send_api.h" #include "php_http_cache_api.h" #include "php_http_headers_api.h" +#include "php_http_filter_api.h" #include "php_http_request_method_api.h" #ifdef HTTP_HAVE_CURL # include "php_http_request_api.h" @@ -128,9 +131,23 @@ zend_function_entry http_functions[] = { }; /* }}} */ +/* {{{ http_module_dep */ +#if ZEND_EXTENSION_API_NO >= 220050617 +static zend_module_dep http_module_dep[] = { +# ifdef HAVE_SPL + ZEND_MOD_REQUIRED("spl") +# endif + {NULL, NULL, NULL, 0} +}; +#endif +/* }}} */ + /* {{{ http_module_entry */ zend_module_entry http_module_entry = { -#if ZEND_MODULE_API_NO >= 20010901 +#if ZEND_EXTENSION_API_NO >= 220050617 + STANDARD_MODULE_HEADER_EX, NULL, + http_module_dep, +#else STANDARD_MODULE_HEADER, #endif "http", @@ -140,9 +157,7 @@ zend_module_entry http_module_entry = { PHP_RINIT(http), PHP_RSHUTDOWN(http), PHP_MINFO(http), -#if ZEND_MODULE_API_NO >= 20010901 HTTP_PEXT_VERSION, -#endif STANDARD_MODULE_PROPERTIES }; /* }}} */ @@ -278,6 +293,7 @@ PHP_MINIT_FUNCTION(http) if ( (SUCCESS != PHP_MINIT_CALL(http_support)) || (SUCCESS != PHP_MINIT_CALL(http_headers)) || (SUCCESS != PHP_MINIT_CALL(http_cache)) || + (SUCCESS != PHP_MINIT_CALL(http_filter)) || #ifdef HTTP_HAVE_CURL (SUCCESS != PHP_MINIT_CALL(http_request)) || #endif /* HTTP_HAVE_CURL */