For Programmers: Free Programming Magazines  


Home > Archive > PHP Zend Engine > October 2005 > cvs: ZendEngine2 /tests bug34879.phpt









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: ZendEngine2 /tests bug34879.phpt
Dmitry Stogov

2005-10-28, 6:56 pm

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/ZendEngin....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
)
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com