From 897e6a4069b14d2c8afbf10aa167f2ee58e7e13b Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Tue, 17 Jun 2003 18:38:56 +0000 Subject: [PATCH] No need to allocate a hashtable when return_value is just going to be overwriten --- ext/standard/streamsfuncs.c | 1 - 1 file changed, 1 deletion(-) 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); -- 2.40.0