php-8.0.30-src/ext/standard/tests/dir/bug41693.phpt

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