- don't destroy headers in http_message_tostruct_recursive()
authorMichael Wallner <mike@php.net>
Thu, 25 Aug 2005 09:18:32 +0000 (09:18 +0000)
committerMichael Wallner <mike@php.net>
Thu, 25 Aug 2005 09:18:32 +0000 (09:18 +0000)
http_message_api.c

index 76a557bb7e38ab22fa8076c6f61cc57933a57c1b..e399ed666a6e51a4c77bc41ae9f42151c72ea2ad 100644 (file)
@@ -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);