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

1.1       misho       1: --TEST--
                      2: Bug #36287 (Segfault with SplFileInfo conversion)
                      3: --FILE--
                      4: <?php
                      5: 
                      6: $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator("."), true);
                      7: 
                      8: $idx = 0;
                      9: foreach($it as $file)
                     10: {
                     11:        echo "First\n";
                     12:        var_Dump($file->getFilename());
                     13:        echo "Second\n";
                     14:        var_dump($file->getFilename());
                     15:        if (++$idx > 1)
                     16:        {
                     17:                break;
                     18:        }
                     19: }
                     20: 
                     21: ?>
                     22: ===DONE===
                     23: --EXPECTF--
                     24: First
                     25: string(%d) "%s"
                     26: Second
                     27: string(%d) "%s"
                     28: First
                     29: string(%d) "%s"
                     30: Second
                     31: string(%d) "%s"
                     32: ===DONE===

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