]> granicus.if.org Git - php/commitdiff
fix array_merge() adding one superfluous byte to the key
authorAntony Dovgal <tony2001@php.net>
Fri, 12 Aug 2005 16:49:20 +0000 (16:49 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 12 Aug 2005 16:49:20 +0000 (16:49 +0000)
ext/standard/array.c

index adf690b213f288d3c21d8e68ebe604d43a570e54..c7b1675ecfdbf441ebf03e1ec841833fe6a9c645 100644 (file)
@@ -2364,7 +2364,7 @@ ukey:
                                } else {
                                        (*src_entry)->refcount++;
 
-                                       zend_u_hash_update(dest, utype, string_key, string_key_len+1,
+                                       zend_u_hash_update(dest, utype, string_key, string_key_len,
                                                                         src_entry, sizeof(zval *), NULL);
                                }
                                break;