From f4c1d51952b2f8b15107c02ae0f44c859a02d071 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 24 Aug 2005 13:16:54 +0000 Subject: [PATCH 1/1] - fix php4 build --- http.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/http.c b/http.c index 990c008..61ee3e7 100644 --- a/http.c +++ b/http.c @@ -222,8 +222,10 @@ PHP_MINIT_FUNCTION(http) http_exception_object_init(); #endif /* ZEND_ENGINE_2 */ +#ifdef ZEND_ENGINE_2 zend_hash_init_ex(&http_response_statics, 0, NULL, ZVAL_INTERNAL_PTR_DTOR, 1, 0); zend_fix_static_properties(http_response_object_ce, &http_response_statics TSRMLS_CC); +#endif return SUCCESS; } /* }}} */ @@ -258,7 +260,9 @@ PHP_RINIT_FUNCTION(http) /* {{{ PHP_RSHUTDOWN_FUNCTION */ PHP_RSHUTDOWN_FUNCTION(http) { +#ifdef ZEND_ENGINE_2 zend_clean_static_properties(http_response_object_ce TSRMLS_CC); +#endif http_globals_free(HTTP_GLOBALS); return SUCCESS; } -- 2.30.2