Bug #62616 [Opn]: ArrayIterator::count() from IteratorIterator instance gives Segmentation fault
| From: | fa@php.net | Date: | Fri, 20 Jul 2012 11:54:38 +0000 |
| Subject: | Bug #62616 [Opn]: ArrayIterator::count() from IteratorIterator instance gives Segmentation fault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-172108@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62616&edit=1
ID: 62616
Updated by: fa@php.net
Reported by: zoeslam at gmail dot com
Summary: ArrayIterator::count() from IteratorIterator
instance gives Segmentation fault
Status: Open
Type: Bug
Package: SPL related
Operating System: Ubuntu 12.04
PHP Version: 5.4.5
Block user comment: N
Private report: N
New Comment:
Reproducible on Debian wheezy with 5.4.0 and 5.4.5.
Previous Comments:
------------------------------------------------------------------------
[2012-07-20 08:13:34] vanidlesky dot jr at gmail dot com
VanZCool
------------------------------------------------------------------------
[2012-07-20 08:07:05] zoeslam at gmail dot com
Description:
------------
The code explains all, no idea why it happens.
Verified on Ubuntu and Slackware, both on PHP 5.4.3, PHP 5.4.4, PHP 5.4.5.
Test script:
---------------
$ai = new ArrayIterator(array(0,1));
var_dump($ai->count());
$ii = new IteratorIterator($ai);
var_dump($ii->count());
Expected result:
----------------
int(2)
int(2)
Actual result:
--------------
int(2)
int(2)
Segmentation fault
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62616&edit=1