ID: 46701 Updated by: fel...@php.net Reported By: testuzer at hotmail dot com -Status: Assigned +Status: Closed Bug Type: Scripting Engine problem Operating System: Linux 32bit - ubuntu PHP Version: 5CVS, 6CVS (2008-11-28) Assigned To: felipe New Comment:
Yes, the patch was revert in 5_2. Previous Comments: ------------------------------------------------------------------------ [2009-02-20 13:13:10] j...@php.net The test fails for me: [j...@localhost tests]$ cat bug46701.diff 001+ array(1) { 002+ [-2147483648]=> 003+ int(3) 004+ } 005+ int(3) 006+ array(1) { 007+ [-2147483648]=> 001- array(3) { 002- [-866368000]=> 003- int(1) 004- [-835511808]=> 005- int(2) 006- [-835350528]=> 009- int(2) 010- array(1) { 011- [-835350528]=> 012- int(3) 013- } ------------------------------------------------------------------------ [2009-01-06 01:30:10] fel...@php.net Fixed in 5_2_9 too. ------------------------------------------------------------------------ [2009-01-05 20:42:49] fel...@php.net This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Fixed in 5_3 and HEAD at the moment. ------------------------------------------------------------------------ [2009-01-03 05:03:24] sh...@php.net Proposed patches to make $array[$double] perform the same as $array[intval($double)]... http://tekrat.com/patches/bug46701.php6.patch http://tekrat.com/patches/bug46701.php53.patch http://tekrat.com/patches/bug46701.php52.patch ------------------------------------------------------------------------ [2008-12-04 01:43:46] msara...@php.net Array ( [-2147483648] => 1 ) Reproduced here. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/46701 -- Edit this bug report at http://bugs.php.net/?id=46701&edit=1