mirror of
https://github.com/php/php-src.git
synced 2026-04-21 23:18:13 +02:00
50765075db
Closes GH-5340
15 lines
240 B
PHP
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
|