From: Marcus Boerger Date: Fri, 11 Mar 2005 01:52:24 +0000 (+0000) Subject: - Do not touch return_valu's refcount or is_ref X-Git-Tag: php-5.0.1b1~844 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e390892b728a30174c5b0b53a0679f9f3a721d7;p=php - Do not touch return_valu's refcount or is_ref --- diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c index 1cd3e95ef9..c89dbbbc3b 100644 --- a/ext/standard/streamsfuncs.c +++ b/ext/standard/streamsfuncs.c @@ -933,9 +933,7 @@ PHP_FUNCTION(stream_context_get_options) RETURN_FALSE; } - *return_value = *context->options; - zval_copy_ctor(return_value); - INIT_PZVAL(return_value); + RETURN_ZVAL(context->options, 1, 0); } /* }}} */