From 0fe9266d9ecd1d99feea6f395655ea944f128215 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Fri, 28 Oct 2005 14:44:41 +0000 Subject: [PATCH] Fixed bug #34879 (str_replace, array_map corrupt negative array indexes on 64-bit platforms) --- Zend/tests/bug34879.phpt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 Zend/tests/bug34879.phpt diff --git a/Zend/tests/bug34879.phpt b/Zend/tests/bug34879.phpt new file mode 100755 index 0000000000..606142bde7 --- /dev/null +++ b/Zend/tests/bug34879.phpt @@ -0,0 +1,11 @@ +--TEST-- +Bug #34879 (str_replace, array_map corrupt negative array indexes on 64-bit platforms) +--FILE-- +-1))); +?> +--EXPECT-- +Array +( + [-1] => -1 +) \ No newline at end of file -- 2.50.1