mirror of
https://github.com/php/php-src.git
synced 2024-11-26 11:23:47 +08:00
No need to allocate a hashtable when return_value is just going to be overwriten
This commit is contained in:
parent
caef4c7776
commit
897e6a4069
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user