From 2812cd0aee5634421e9909a77a8b1e9aff012a3d Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 13 Dec 2005 20:22:37 +0000 Subject: [PATCH] - fix segv --- http_request_object.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http_request_object.c b/http_request_object.c index 8d6e798..8280f97 100644 --- a/http_request_object.c +++ b/http_request_object.c @@ -348,7 +348,7 @@ static inline void _http_request_object_declare_default_properties(TSRMLS_D) DCL_PROP_N(PROTECTED, options); DCL_PROP_N(PROTECTED, responseInfo); DCL_PROP_N(PROTECTED, responseData); - DCL_PROP_N(PROTECTED, responseCode); + DCL_PROP(PROTECTED, long, responseCode, 0); DCL_PROP_N(PROTECTED, responseMessage); DCL_PROP_N(PROTECTED, postFields); DCL_PROP_N(PROTECTED, postFiles); @@ -601,7 +601,7 @@ STATUS _http_request_object_responsehandler(http_request_object *obj, zval *this UPD_PROP(obj, long, responseCode, msg->http.info.response.code); - MAKE_STD_ZVAL(headers) + MAKE_STD_ZVAL(headers); array_init(headers); zend_hash_copy(Z_ARRVAL_P(headers), &msg->hdrs, (copy_ctor_func_t) zval_add_ref, NULL, sizeof(zval *)); -- 2.30.2