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

Reply via email to