summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/glob_variation3.phpt
blob: 891bbb6fa101ff87965ff5458ce163de91b24ac3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--TEST--
Test glob() function: ensure no platform difference
--FILE--
<?php
$path = __DIR__;

ini_set('open_basedir', '');

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"));

var_dump(empty(ini_get('open_basedir')));
?>
--EXPECT--
array(0) {
}
array(0) {
}
array(0) {
}
array(0) {
}
array(0) {
}
array(0) {
}
bool(true)