xref: /PHP-8.2/ext/standard/tests/dir/bug41693.phpt (revision 50765075)
1--TEST--
2Bug #41693 (scandir() allows empty directory names)
3--FILE--
4<?php
5
6try {
7    var_dump(scandir(''));
8} catch (\ValueError $e) {
9    echo $e->getMessage() . "\n";
10}
11
12?>
13--EXPECT--
14scandir(): Argument #1 ($directory) cannot be empty
15