diff options
author | Sara Golemon <pollita@php.net> | 2003-06-16 18:19:14 +0000 |
---|---|---|
committer | Sara Golemon <pollita@php.net> | 2003-06-16 18:19:14 +0000 |
commit | 2f4e91bf8a25ca7b47e7688281d432500eeae97f (patch) | |
tree | 49ee5c4f9cd68f344726ddf9e0ce5ad6b55be2c6 /ext/standard/streamsfuncs.c | |
parent | cd5fd7eed768c65d4721b882edbe3ee5dffa65c2 (diff) | |
download | php-git-2f4e91bf8a25ca7b47e7688281d432500eeae97f.tar.gz |
optionvalue is being copied via zval_copy_ctor, there's no need to addref the original
Diffstat (limited to 'ext/standard/streamsfuncs.c')
-rw-r--r-- | ext/standard/streamsfuncs.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c index 8a2c01cc35..aa729cc53f 100644 --- a/ext/standard/streamsfuncs.c +++ b/ext/standard/streamsfuncs.c @@ -650,7 +650,6 @@ static int parse_context_options(php_stream_context *context, zval *options) while (SUCCESS == zend_hash_get_current_data_ex(Z_ARRVAL_PP(wval), (void**)&oval, &opos)) { if (HASH_KEY_IS_STRING == zend_hash_get_current_key_ex(Z_ARRVAL_PP(wval), &okey, &okey_len, NULL, 0, &opos)) { - ZVAL_ADDREF(*oval); php_stream_context_set_option(context, wkey, okey, *oval); } zend_hash_move_forward_ex(Z_ARRVAL_PP(wval), &opos); |