Annotation of embedaddon/php/ext/spl/tests/bug54291.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #54291 (Crash iterating DirectoryIterator for dir name starting with \0)
! 3: --FILE--
! 4: <?php
! 5: $dir = new DirectoryIterator("\x00/abc");
! 6: $dir->isFile();
! 7: --EXPECTF--
! 8: Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Failed to open directory ""' in %s:%d
! 9: Stack trace:
! 10: #0 %s(%d): DirectoryIterator->__construct('?/abc')
! 11: #1 {main}
! 12: thrown in %s on line %d
! 13:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>