]> granicus.if.org Git - php/commitdiff
- Do not touch return_valu's refcount or is_ref
authorMarcus Boerger <helly@php.net>
Fri, 11 Mar 2005 01:52:24 +0000 (01:52 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 11 Mar 2005 01:52:24 +0000 (01:52 +0000)
ext/standard/streamsfuncs.c

index 1cd3e95ef9afd42f508919a00c20d36023c11fc8..c89dbbbc3b1c0430a7188660d8ea41a9a0f232f6 100644 (file)
@@ -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);
 }
 /* }}} */