diff options
author | Stanislav Malyshev <stas@php.net> | 2014-08-14 16:59:14 -0700 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2014-08-14 17:00:36 -0700 |
commit | 418563320788cb70c9319c3625669fea53afa295 (patch) | |
tree | cdc655f95cc6254ef4f598229ccd74ab4290812d /ext/standard/tests | |
parent | d1dd71454d4ff9b6207c3ab73893f54da62cc3cf (diff) | |
parent | ad492ca9327fc9f7f0ea7a0ddd32e62cdf0c9137 (diff) | |
download | php-git-418563320788cb70c9319c3625669fea53afa295.tar.gz |
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
fixed glob() edge case on windows, ref bug #47358
- fix bug #47358, glob returns error, should be empty array()
Diffstat (limited to 'ext/standard/tests')
-rw-r--r-- | ext/standard/tests/file/glob_variation3.phpt | 53 |
1 files changed, 52 insertions, 1 deletions
diff --git a/ext/standard/tests/file/glob_variation3.phpt b/ext/standard/tests/file/glob_variation3.phpt index 9e1e28baf9..9c57ada3be 100644 --- a/ext/standard/tests/file/glob_variation3.phpt +++ b/ext/standard/tests/file/glob_variation3.phpt @@ -6,14 +6,65 @@ $path = dirname(__FILE__); ini_set('open_basedir', NULL); var_dump(glob("$path/*.none")); +var_dump(glob("$path/?.none")); +var_dump(glob("$path/*{hello,world}.none")); +var_dump(glob("$path/*/nothere")); +var_dump(glob("$path/[aoeu]*.none")); +var_dump(glob("$path/directly_not_exists")); ini_set('open_basedir', $path); var_dump(glob("$path/*.none")); +var_dump(glob("$path/?.none")); +var_dump(glob("$path/*{hello,world}.none")); +var_dump(glob("$path/*/nothere")); +var_dump(glob("$path/[aoeu]*.none")); +var_dump(glob("$path/directly_not_exists")); + +ini_set('open_basedir', '/tmp'); +var_dump(glob("$path/*.none")); +var_dump(glob("$path/?.none")); +var_dump(glob("$path/*{hello,world}.none")); +var_dump(glob("$path/*/nothere")); +var_dump(glob("$path/[aoeu]*.none")); +var_dump(glob("$path/directly_not_exists")); ?> ==DONE== --EXPECT-- array(0) { } -bool(false) +array(0) { +} +array(0) { +} +array(0) { +} +array(0) { +} +array(0) { +} +array(0) { +} +array(0) { +} +array(0) { +} +array(0) { +} +array(0) { +} +array(0) { +} +array(0) { +} +array(0) { +} +array(0) { +} +array(0) { +} +array(0) { +} +array(0) { +} ==DONE== |