ID: 48206 Updated by: j...@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