summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSara Golemon <pollita@php.net>2003-06-17 18:38:56 +0000
committerSara Golemon <pollita@php.net>2003-06-17 18:38:56 +0000
commit897e6a4069b14d2c8afbf10aa167f2ee58e7e13b (patch)
treeb539abe7d41870fa51cfc3a84629cb323322a983
parentcaef4c77769e0825ca424c0f773cbd3d690f3766 (diff)
downloadphp-git-897e6a4069b14d2c8afbf10aa167f2ee58e7e13b.tar.gz
No need to allocate a hashtable when return_value is just going to be overwriten
-rw-r--r--ext/standard/streamsfuncs.c1
1 files changed, 0 insertions, 1 deletions
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);