mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Use STR_COPY() instead of STR_DUP() where possible
This commit is contained in:
parent
a25a1ba0ef
commit
042c937f69
5 changed files with 7 additions and 6 deletions
|
@ -1083,7 +1083,7 @@ static int zend_merge_property(zval *value TSRMLS_DC, int num_args, va_list args
|
|||
zend_object_handlers *obj_ht = va_arg(args, zend_object_handlers *);
|
||||
zval member;
|
||||
|
||||
ZVAL_STR(&member, STR_DUP(hash_key->key, 0));
|
||||
ZVAL_STR(&member, STR_COPY(hash_key->key));
|
||||
obj_ht->write_property(obj, &member, value, 0 TSRMLS_CC);
|
||||
zval_ptr_dtor(&member);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue