#48206 [Ver->Csd]: Segfault in RecursiveIteratorIterator::current()

From: Date: Sat, 09 May 2009 19:48:14 +0000
Subject: #48206 [Ver->Csd]: Segfault in RecursiveIteratorIterator::current()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-137048@lists.php.net to get a copy of this message
ID: 48206 Updated by: scottmac@php.net Reported By: matt at raines dot me dot uk -Status: Verified +Status: Closed Bug Type: SPL related Operating System: * PHP Version: 5.*, 6CVS (2009-05-09) New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2009-05-09 14:01:27] matt at raines dot me dot uk Description: ------------ If you wrap a RecursiveArrayIterator in a RecursiveIteratorIterator and iterate past the end of the array, PHP crashes. Reproduce code: --------------- <?php $i = new RecursiveIteratorIterator(new RecursiveArrayIterator(array())); $i->next(); var_dump($i->current()); ?> Expected result: ---------------- NULL Actual result: -------------- Segmentation fault (core dumped) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48206&edit=1

« previous php.bugs (#137048) next »