Annotation of embedaddon/php/ext/spl/tests/bug36258.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #36258 (SplFileObject::getPath() may lead to segfault)
! 3: --FILE--
! 4: <?php
! 5:
! 6: $diriter = new RecursiveIteratorIterator( new RecursiveDirectoryIterator('.') );
! 7:
! 8: foreach ($diriter as $key => $file) {
! 9: var_dump($file->getFilename());
! 10: var_dump($file->getPath());
! 11: break;
! 12: }
! 13:
! 14: ?>
! 15: ===DONE===
! 16: --EXPECTF--
! 17: string(%d) "%s"
! 18: string(%d) "%s"
! 19: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>