]> granicus.if.org Git - php/commitdiff
Fixed bug #34879 (str_replace, array_map corrupt negative array indexes on 64-bit...
authorDmitry Stogov <dmitry@php.net>
Fri, 28 Oct 2005 14:44:41 +0000 (14:44 +0000)
committerDmitry Stogov <dmitry@php.net>
Fri, 28 Oct 2005 14:44:41 +0000 (14:44 +0000)
Zend/tests/bug34879.phpt [new file with mode: 0755]

diff --git a/Zend/tests/bug34879.phpt b/Zend/tests/bug34879.phpt
new file mode 100755 (executable)
index 0000000..606142b
--- /dev/null
@@ -0,0 +1,11 @@
+--TEST--
+Bug #34879 (str_replace, array_map corrupt negative array indexes on 64-bit platforms)
+--FILE--
+<?php
+print_r(str_replace('a', 'b', array(-1 =>-1)));
+?>
+--EXPECT--
+Array
+(
+    [-1] => -1
+)
\ No newline at end of file