mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Make array_merge(_recursive) handle binary keys safely. (Patch by Matt W)
This commit is contained in:
parent
3a75600dbb
commit
3d7a1c3972
@ -2328,7 +2328,7 @@ PHPAPI int php_array_merge(HashTable *dest, HashTable *src, int recursive TSRMLS
|
||||
} else {
|
||||
(*src_entry)->refcount++;
|
||||
|
||||
zend_hash_update(dest, string_key, strlen(string_key)+1,
|
||||
zend_hash_update(dest, string_key, string_key_len,
|
||||
src_entry, sizeof(zval *), NULL);
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user