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