From: Sara Golemon Date: Tue, 17 Jun 2003 18:38:56 +0000 (+0000) Subject: No need to allocate a hashtable when return_value is just going to be overwriten X-Git-Tag: RELEASE_1_0_2~164 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=897e6a4069b14d2c8afbf10aa167f2ee58e7e13b;p=php No need to allocate a hashtable when return_value is just going to be overwriten --- diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c index aa729cc53f..96a05f1c4d 100644 --- a/ext/standard/streamsfuncs.c +++ b/ext/standard/streamsfuncs.c @@ -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);