Edit report at https://bugs.php.net/bug.php?id=62616&edit=1

 ID:                 62616
 Comment by:         vanidlesky dot jr at gmail dot com
 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:

VanZCool


Previous Comments:
------------------------------------------------------------------------
[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

Reply via email to