]> granicus.if.org Git - php/commitdiff
Fix glob-wrapper.phpt to not fail in Windows
authorMitch Hagstrand <mhagstrand@gmail.com>
Tue, 10 Jan 2017 19:51:55 +0000 (11:51 -0800)
committerNikita Popov <nikic@php.net>
Tue, 10 Jan 2017 22:18:52 +0000 (23:18 +0100)
ext/standard/tests/streams/glob-wrapper.phpt

index fc47d83a02330bbefe43878a8fd1a2eb34b93fdd..0e4438fdcc622189b6cc6979b0ac419d35398cbb 100644 (file)
@@ -23,13 +23,13 @@ foreach ( [ __DIR__, "glob://".__DIR__ ] as $spec) {
 --EXPECTF--
 ** Opening %s
 
-Warning: opendir(): open_basedir restriction in effect. File(/%s) is not within the allowed path(s): (/does_not_exist) in %s/glob-wrapper.php on line 5
+Warning: opendir(): open_basedir restriction in effect. File(%s) is not within the allowed path(s): (/does_not_exist) in %s%eglob-wrapper.php on line 5
 
-Warning: opendir(/%s): failed to open dir: Operation not permitted in %s/glob-wrapper.php on line 5
-Failed to open /%s
+Warning: opendir(%s): failed to open dir: Operation not permitted in %s%eglob-wrapper.php on line 5
+Failed to open %s
 ** Opening glob://%s
 
-Warning: opendir(): open_basedir restriction in effect. File(/%s) is not within the allowed path(s): (/does_not_exist) in %s/glob-wrapper.php on line 5
+Warning: opendir(): open_basedir restriction in effect. File(%s) is not within the allowed path(s): (/does_not_exist) in %s%eglob-wrapper.php on line 5
 
-Warning: opendir(glob://%s): failed to open dir: operation failed in %s/glob-wrapper.php on line 5
+Warning: opendir(glob://%s): failed to open dir: operation failed in %s%eglob-wrapper.php on line 5
 Failed to open glob://%s