On August 12, 2003 02:27 am, Zeev Suraski wrote: > At 05:16 11/08/2003, Ilia Alshanetsky wrote: > >+1 > > > >This patch not only fixes the above mentioned bugs, but also serveral > >backwards compatibility issues that occured due to the fix for bug #18140. > > Can you provide an example?
Original Bugs that caused BC break. php -r ' $arr = array(0=>0,-1=>0); $arr[] = 0; ' This caused a segmentation fault in 4.2.3 Here is one example of the problem. php -r ' $arr[-2] = 1; $arr[] = 2; print_r($arr); ' PHP 4.2.3 Array ( [-2] => 1 [-1] => 2 ) PHP 4.3.X/5.X (wo/patch) Array ( [-2] => 1 [0] => 2 ) PHP 4.3.X/5.X (w/patch) Array ( [-2] => 1 [-1] => 2 ) Ilia -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php