com php-src: Move and fix scandir related bug test: ext/standard/tests/dir/bug41693.phpt ext/standard/tests/file/bug41693.phpt

From: Date: Fri, 30 Aug 2019 07:50:04 +0000
Subject: com php-src: Move and fix scandir related bug test: ext/standard/tests/dir/bug41693.phpt ext/standard/tests/file/bug41693.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-108147@lists.php.net to get a copy of this message
Commit: 1f647ab4caf6b095759a65d2c31becc26938c3d8 Author: George Peter Banyard <girgias@php.net> Thu, 29 Aug 2019 01:35:29 +0200 Committer: Joe Watkins <krakjoe@php.net> Fri, 30 Aug 2019 09:50:04 +0200 Parents: b3d725218d881cb26028af04140f66617df3a06a Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1f647ab4caf6b095759a65d2c31becc26938c3d8 Log: Move and fix scandir related bug test Changed paths: A ext/standard/tests/dir/bug41693.phpt D ext/standard/tests/file/bug41693.phpt Diff: diff --git a/ext/standard/tests/dir/bug41693.phpt b/ext/standard/tests/dir/bug41693.phpt new file mode 100644 index 0000000..c42ca2f --- /dev/null +++ b/ext/standard/tests/dir/bug41693.phpt @@ -0,0 +1,14 @@ +--TEST-- +Bug #41693 (scandir() allows empty directory names) +--FILE-- +<?php + +try { + var_dump(scandir('')); +} catch (\Error $e) { + echo $e->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 ea074fa..0000000 --- a/ext/standard/tests/file/bug41693.phpt +++ /dev/null @@ -1,13 +0,0 @@ ---TEST-- -Bug #41693 (scandir() allows empty directory names) ---FILE-- -<?php - -var_dump(scandir('')); - -echo "Done\n"; -?> ---EXPECTF-- -Warning: scandir(): Directory name cannot be empty in %s on line %d -bool(false) -Done

« previous php.cvs (#108147) next »