Annotation of embedaddon/php/ext/spl/tests/bug54281.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #54281 (Crash in spl_recursive_it_rewind_ex)
                      3: --FILE--
                      4: <?php
                      5: 
                      6: class RecursiveArrayIteratorIterator extends RecursiveIteratorIterator {
                      7:        function __construct($it, $max_depth) { }
                      8: }
                      9: $it = new RecursiveArrayIteratorIterator(new RecursiveArrayIterator(array()), 2);
                     10: 
                     11: foreach($it as $k=>$v) { }
                     12: 
                     13: ?>
                     14: --EXPECTF--
                     15: Fatal error: RecursiveIteratorIterator::rewind(): The RecursiveArrayIteratorIterator instance wasn't initialized properly in %s on line %d

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>