Make array_merge(_recursive) handle binary keys safely. (Patch by Matt W)

This commit is contained in:
Andrei Zmievski 2006-07-30 03:31:18 +00:00
parent 3a75600dbb
commit 3d7a1c3972

View File

@ -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;