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

From: Date: Sat, 09 May 2009 19:15:30 +0000
Subject: #48206 [Opn->Ver]: Segfault in RecursiveIteratorIterator::current()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-137046@lists.php.net to get a copy of this message
ID: 48206 Updated by: jani@php.net Reported By: matt at raines dot me dot uk -Status: Open +Status: Verified -Bug Type: Reproducible crash +Bug Type: SPL related Operating System: Linux ubuntu 2.6.27-7-generic #1 PHP Version: 5.*, 6CVS (2009-05-09) 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 (#137046) next »