X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_message_api.c;h=e399ed666a6e51a4c77bc41ae9f42151c72ea2ad;hp=76a557bb7e38ab22fa8076c6f61cc57933a57c1b;hb=234dac3f03c6b7342bb70829bc9641268cab7156;hpb=a4b593d03ef14d9bc422cbe6ce471a7b5b8abe5d 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);