From: Michael Wallner Date: Thu, 25 Aug 2005 14:28:23 +0000 (+0000) Subject: - fix php4 build X-Git-Tag: RELEASE_0_12_0~12 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=e7c1206dcba5169d6d3d41b88a63db07a315cfc7 - fix php4 build --- 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; } /* }}} */