2011-03-22 22:41:16 +00:00
|
|
|
--TEST--
|
|
|
|
Bug #54281 (Crash in spl_recursive_it_rewind_ex)
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
|
|
|
|
class RecursiveArrayIteratorIterator extends RecursiveIteratorIterator {
|
|
|
|
function __construct($it, $max_depth) { }
|
|
|
|
}
|
|
|
|
$it = new RecursiveArrayIteratorIterator(new RecursiveArrayIterator(array()), 2);
|
|
|
|
|
|
|
|
foreach($it as $k=>$v) { }
|
|
|
|
|
|
|
|
?>
|
|
|
|
--EXPECTF--
|
2014-07-27 01:00:16 +00:00
|
|
|
Fatal error: Uncaught exception 'LogicException' with message 'The object is in an invalid state as the parent constructor was not called' in %s:%d
|
|
|
|
Stack trace:
|
2014-08-29 22:28:10 +00:00
|
|
|
#0 %s%ebug54281.php(8): RecursiveIteratorIterator->rewind()
|
2014-07-27 01:00:16 +00:00
|
|
|
#1 {main}
|
2014-08-29 22:28:10 +00:00
|
|
|
thrown in %s%ebug54281.php on line 8
|