cvs: ZendEngine2 /tests bug34879.phpt
| From: | Dmitry Stogov | Date: | Fri, 28 Oct 2005 14:44:42 +0000 |
| Subject: | cvs: ZendEngine2 /tests bug34879.phpt | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-4293@lists.php.net to get a copy of this message | ||
dmitry Fri Oct 28 10:44:42 2005 EDT
Added files:
/ZendEngine2/tests bug34879.phpt
Log:
Fixed bug #34879 (str_replace, array_map corrupt negative array indexes on 64-bit platforms)
http://cvs.php.net/co.php/ZendEngine2/tests/bug34879.phpt?r=1.1&p=1
Index: ZendEngine2/tests/bug34879.phpt
+++ ZendEngine2/tests/bug34879.phpt
--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
)