1--TEST--
2Test glob() function: ensure no platform difference, variation 3
3--SKIPIF--
4<?php if( substr(PHP_OS, 0, 3) == "WIN" ) die('skip not valid directory on Windows'); ?>
5--FILE--
6<?php
7$path = __DIR__;
8
9$open_basedir = '/some_directory_we_are_hopefully_not_running_tests_from';
10ini_set('open_basedir', $open_basedir);
11
12var_dump(glob("$path/*.none"));
13var_dump(glob("$path/?.none"));
14var_dump(glob("$path/*{hello,world}.none"));
15var_dump(glob("$path/*/nothere"));
16var_dump(glob("$path/[aoeu]*.none"));
17var_dump(glob("$path/directly_not_exists"));
18
19var_dump($open_basedir == ini_get('open_basedir'));
20?>
21--EXPECT--
22array(0) {
23}
24array(0) {
25}
26array(0) {
27}
28array(0) {
29}
30array(0) {
31}
32array(0) {
33}
34bool(true)
35