Bug #55061 [Com]: Array autoindex[] overflow
| From: | vovan-ve at yandex dot ru | Date: | Tue, 15 Jul 2014 12:21:11 +0000 |
| Subject: | Bug #55061 [Com]: Array autoindex[] overflow | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-186633@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55061&edit=1
ID: 55061
Comment by: vovan-ve at yandex dot ru
Reported by: vovan-ve at yandex dot ru
Summary: Array autoindex[] overflow
Status: Verified
Type: Bug
Package: Arrays related
Operating System: Windows and 32bit OS
PHP Version: *
Block user comment: N
Private report: N
New Comment:
PHP <= 5.2.9 has *true* overflow: http://3v4l.org/As2H4
array(2) {
[9223372036854775807]=>
int(42)
[-9223372036854775808]=>
int(37)
}
Changelog for 5.2.10 mentioned https://bugs.php.net/bug.php?id=47836
Previous Comments:
------------------------------------------------------------------------
[2014-07-15 12:00:33] yohgaki@php.net
Values exceeds 64bit causes the same issue even with 64bit int.
------------------------------------------------------------------------
[2014-07-15 11:58:46] yohgaki@php.net
http://3v4l.org/B0Ao5
32 bit int issue.
------------------------------------------------------------------------
[2012-07-03 15:45:21] pollita@php.net
Reproduced on Debian.
Tempting as it may be to go the string index route for values greater than
PHP_INT_MAX, I'm more inclined to get a workable Big Int in PHP first, then use
that for the index (beyond PHP_INT_MAX)
------------------------------------------------------------------------
[2012-02-27 23:45:25] vovan-ve at yandex dot ru
Reproduced with the same behaviour and result in Ubuntu 11.10 i386.
------------------------------------------------------------------------
[2011-07-29 14:39:20] vovan-ve at yandex dot ru
No, I have no non-official extensions. I have disabled all extensions for test even. May be your int
is not int32?
------------------------------------------------------------------------
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
https://bugs.php.net/bug.php?id=55061
--
Edit this bug report at https://bugs.php.net/bug.php?id=55061&edit=1