From: Michael Wallner Date: Thu, 25 Aug 2005 09:18:32 +0000 (+0000) Subject: - don't destroy headers in http_message_tostruct_recursive() X-Git-Tag: RELEASE_0_12_0~17 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=b107d451def2ff6dcdaad2cfc23bb0344b4a3baf;p=m6w6%2Fext-http - don't destroy headers in http_message_tostruct_recursive() --- diff --git a/http_message_api.c b/http_message_api.c index 76a557b..e399ed6 100644 --- a/http_message_api.c +++ b/http_message_api.c @@ -334,7 +334,6 @@ PHP_HTTP_API void _http_message_tostruct_recursive(http_message *msg, zval *obj array_init(headers); zend_hash_copy(Z_ARRVAL_P(headers), &msg->hdrs, (copy_ctor_func_t) zval_add_ref, NULL, sizeof(zval *)); add_assoc_zval(&strct, "headers", headers); - zval_ptr_dtor(&headers); add_assoc_stringl(&strct, "body", PHPSTR_VAL(msg), PHPSTR_LEN(msg), 1);