Bug #62616 [Com]: ArrayIterator::count() from IteratorIterator instance gives Segmentation fault
From: vanidlesky dot jr at gmail dot com Date: Fri, 20 Jul 2012 08:13:34 +0000 Subject: Bug #62616 [Com]: ArrayIterator::count() from IteratorIterator instance gives Segmentation fault References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-172103@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
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
Thread (9 messages)
- Bug #62616 [Com]: ArrayIterator::count() from IteratorIterator instance gives Segmentation fault
- Bug #62616 [Opn]: ArrayIterator::count() from IteratorIterator instance gives Segmentation fault
- Bug #62616 [Opn]: ArrayIterator::count() from IteratorIterator instance gives Segmentation fault
- Bug #62616 [Opn->Ver]: ArrayIterator::count() from IteratorIterator instance gives Segmentation fault
- Bug #62616 [Ver]: ArrayIterator::count() from IteratorIterator instance gives Segmentation fault
- Bug #62616 [Ver]: ArrayIterator::count() from IteratorIterator instance gives Segmentation fault
- Bug #62616 [Com]: ArrayIterator::count() from IteratorIterator instance gives Segmentation fault
- Bug #62616 [Ver->Csd]: ArrayIterator::count() from IteratorIterator instance gives Segmentation fault
| « previous | php.bugs (#172103) | next » |
|---|