]> granicus.if.org Git - php/commitdiff
No need to allocate a hashtable when return_value is just going to be overwriten
authorSara Golemon <pollita@php.net>
Tue, 17 Jun 2003 18:38:56 +0000 (18:38 +0000)
committerSara Golemon <pollita@php.net>
Tue, 17 Jun 2003 18:38:56 +0000 (18:38 +0000)
ext/standard/streamsfuncs.c

index aa729cc53fa4e9927ba444b5f29c9c36f85b0cd2..96a05f1c4dbb501bc0ab57f7b8ef9d7a67e41734 100644 (file)
@@ -726,7 +726,6 @@ PHP_FUNCTION(stream_context_get_options)
        context = decode_context_param(zcontext TSRMLS_CC);
        ZEND_VERIFY_RESOURCE(context);
 
-       array_init(return_value);
        *return_value = *context->options;
        zval_copy_ctor(return_value);