1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 23:18:13 +02:00
Files
archived-php-src/ext/standard/tests/dir/bug41693.phpt
T
Máté Kocsis 50765075db Improve some ValueError messages
Closes GH-5340
2020-04-06 10:41:01 +02:00

15 lines
240 B
PHP

--TEST--
Bug #41693 (scandir() allows empty directory names)
--FILE--
<?php
try {
var_dump(scandir(''));
} catch (\ValueError $e) {
echo $e->getMessage() . "\n";
}
?>
--EXPECT--
scandir(): Argument #1 ($directory) cannot be empty