summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/glob_variation4.phpt
blob: 00d8f648aad365e93aed03d0c51530c39b934fa8 (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
32
33
--TEST--
Test glob() function: ensure no platform difference, variation 2
--FILE--
<?php
$path = dirname(__FILE__);

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

var_dump($path == ini_get('open_basedir'));
?>
==DONE==
--EXPECT--
array(0) {
}
array(0) {
}
array(0) {
}
array(0) {
}
array(0) {
}
array(0) {
}
bool(true)
==DONE==