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