mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
36 lines
652 B
PHP
36 lines
652 B
PHP
--TEST--
|
|
Test glob() function: ensure no platform difference, variation 4
|
|
--SKIPIF--
|
|
<?php if( substr(PHP_OS, 0, 3) != "WIN" ) {die('skip only valid on Windows');} ?>
|
|
--FILE--
|
|
<?php
|
|
$path = dirname(__FILE__);
|
|
|
|
ini_set('open_basedir', 'c:\\windows');
|
|
|
|
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('c:\\windows' == ini_get('open_basedir'));
|
|
?>
|
|
==DONE==
|
|
--EXPECT--
|
|
array(0) {
|
|
}
|
|
array(0) {
|
|
}
|
|
array(0) {
|
|
}
|
|
array(0) {
|
|
}
|
|
array(0) {
|
|
}
|
|
array(0) {
|
|
}
|
|
bool(true)
|
|
==DONE==
|