- fix php4 build
authorMichael Wallner <mike@php.net>
Thu, 25 Aug 2005 14:28:23 +0000 (14:28 +0000)
committerMichael Wallner <mike@php.net>
Thu, 25 Aug 2005 14:28:23 +0000 (14:28 +0000)
http.c

diff --git a/http.c b/http.c
index 73d6f87283798cb7a9783beb3f8659520d448123..e64840e3bbb8332990f207b2f5d13867f61486a2 100644 (file)
--- a/http.c
+++ b/http.c
@@ -241,7 +241,9 @@ PHP_MINIT_FUNCTION(http)
 /* {{{ PHP_MSHUTDOWN_FUNCTION */
 PHP_MSHUTDOWN_FUNCTION(http)
 {
 /* {{{ PHP_MSHUTDOWN_FUNCTION */
 PHP_MSHUTDOWN_FUNCTION(http)
 {
+#ifdef ZEND_ENGINE_2
        zend_hash_destroy(&http_response_statics);
        zend_hash_destroy(&http_response_statics);
+#endif
        UNREGISTER_INI_ENTRIES();
 #ifdef HTTP_HAVE_CURL
        curl_global_cleanup();
        UNREGISTER_INI_ENTRIES();
 #ifdef HTTP_HAVE_CURL
        curl_global_cleanup();
@@ -260,7 +262,9 @@ PHP_RINIT_FUNCTION(http)
        }
 
        http_globals_init(HTTP_GLOBALS);
        }
 
        http_globals_init(HTTP_GLOBALS);
+#ifdef ZEND_ENGINE_2
        zend_init_static_properties(http_response_object_ce, &http_response_statics TSRMLS_CC);
        zend_init_static_properties(http_response_object_ce, &http_response_statics TSRMLS_CC);
+#endif
        return SUCCESS;
 }
 /* }}} */
        return SUCCESS;
 }
 /* }}} */