From: George Peter Banyard Date: Wed, 28 Aug 2019 23:35:29 +0000 (+0200) Subject: Move and fix scandir related bug test X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f647ab4caf6b095759a65d2c31becc26938c3d8;p=php Move and fix scandir related bug test --- diff --git a/ext/standard/tests/dir/bug41693.phpt b/ext/standard/tests/dir/bug41693.phpt new file mode 100644 index 0000000000..c42ca2faea --- /dev/null +++ b/ext/standard/tests/dir/bug41693.phpt @@ -0,0 +1,14 @@ +--TEST-- +Bug #41693 (scandir() allows empty directory names) +--FILE-- +getMessage() . "\n"; +} + +?> +--EXPECT-- +Directory name cannot be empty diff --git a/ext/standard/tests/file/bug41693.phpt b/ext/standard/tests/file/bug41693.phpt deleted file mode 100644 index ea074fa4fd..0000000000 --- a/ext/standard/tests/file/bug41693.phpt +++ /dev/null @@ -1,13 +0,0 @@ ---TEST-- -Bug #41693 (scandir() allows empty directory names) ---FILE-- - ---EXPECTF-- -Warning: scandir(): Directory name cannot be empty in %s on line %d -bool(false) -Done