From: Michael Wallner Date: Fri, 29 Jul 2005 20:56:11 +0000 (+0000) Subject: - avoid leak in RETURN_OBJECT X-Git-Tag: RELEASE_0_11_0~4 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=40806abd47a65a1fccc000507fd2ff95954a75a5;p=m6w6%2Fext-http - avoid leak in RETURN_OBJECT - fix HttpRequest_002.phpt --- diff --git a/php_http_std_defs.h b/php_http_std_defs.h index f0e862e..87bd58e 100644 --- a/php_http_std_defs.h +++ b/php_http_std_defs.h @@ -54,7 +54,6 @@ typedef int STATUS; return_value->is_ref = 1; \ return_value->type = IS_OBJECT; \ return_value->value.obj = (ov); \ - zval_add_ref(&return_value); \ zend_objects_store_add_ref(return_value TSRMLS_CC) #define RETURN_OBJVAL(ov) \ RETVAL_OBJVAL(ov); \ diff --git a/tests/HttpRequest_002.phpt b/tests/HttpRequest_002.phpt index 9c9c49a..c0766b0 100644 --- a/tests/HttpRequest_002.phpt +++ b/tests/HttpRequest_002.phpt @@ -46,8 +46,7 @@ Array [content_length_upload] => %d [content_type] => %s [httpauth_avail] => %d - [proxyauth_avail] => %d - [num_connects] => %d + [proxyauth_avail] => %s ) int(501) int(501)