Skip to content

Commit 1f647ab

Browse files
Girgiaskrakjoe
authored andcommitted
Move and fix scandir related bug test
1 parent b3d7252 commit 1f647ab

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

ext/standard/tests/dir/bug41693.phpt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
--TEST--
2+
Bug #41693 (scandir() allows empty directory names)
3+
--FILE--
4+
<?php
5+
6+
try {
7+
var_dump(scandir(''));
8+
} catch (\Error $e) {
9+
echo $e->getMessage() . "\n";
10+
}
11+
12+
?>
13+
--EXPECT--
14+
Directory name cannot be empty

ext/standard/tests/file/bug41693.phpt

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)