mirror of
https://github.com/php/php-src.git
synced 2024-09-29 22:06:09 +00:00
14 lines
383 B
Plaintext
14 lines
383 B
Plaintext
|
--TEST--
|
||
|
Bug #54291 (Crash iterating DirectoryIterator for dir name starting with \0)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$dir = new DirectoryIterator("\x00/abc");
|
||
|
$dir->isFile();
|
||
|
--EXPECTF--
|
||
|
Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Failed to open directory ""' in %s:%d
|
||
|
Stack trace:
|
||
|
#0 %s(%d): DirectoryIterator->__construct('?/abc')
|
||
|
#1 {main}
|
||
|
thrown in %s on line %d
|
||
|
|