X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http.c;h=e64840e3bbb8332990f207b2f5d13867f61486a2;hp=73d6f87283798cb7a9783beb3f8659520d448123;hb=e7c1206dcba5169d6d3d41b88a63db07a315cfc7;hpb=234dac3f03c6b7342bb70829bc9641268cab7156 diff --git a/http.c b/http.c index 73d6f87..e64840e 100644 --- a/http.c +++ b/http.c @@ -241,7 +241,9 @@ PHP_MINIT_FUNCTION(http) /* {{{ PHP_MSHUTDOWN_FUNCTION */ PHP_MSHUTDOWN_FUNCTION(http) { +#ifdef ZEND_ENGINE_2 zend_hash_destroy(&http_response_statics); +#endif UNREGISTER_INI_ENTRIES(); #ifdef HTTP_HAVE_CURL curl_global_cleanup(); @@ -260,7 +262,9 @@ PHP_RINIT_FUNCTION(http) } http_globals_init(HTTP_GLOBALS); +#ifdef ZEND_ENGINE_2 zend_init_static_properties(http_response_object_ce, &http_response_statics TSRMLS_CC); +#endif return SUCCESS; } /* }}} */