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

1.1       misho       1: --TEST--
                      2: Bug #31926 (php in free() error with RecursiveArrayIterator)
                      3: --FILE--
                      4: <?php
                      5: 
                      6: $array = array(0 => array('world'));
                      7: 
                      8: $it = new RecursiveIteratorIterator(new RecursiveArrayIterator($array));
                      9: foreach($it as $key => $val) {
                     10:    var_dump($key, $val);
                     11: }
                     12: 
                     13: ?>
                     14: --EXPECT--
                     15: int(0)
                     16: string(5) "world"

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