summaryrefslogtreecommitdiff
path: root/ext/standard
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2013-08-19 11:17:13 +0200
committerAnatol Belski <ab@php.net>2013-08-19 11:17:13 +0200
commit4bad49e3bcb8851b6bdf7ce8e8405a12d0eec6d0 (patch)
tree68b7d426a70a12539c3572a7ccf71ad1e6d68381 /ext/standard
parentcf96aa155ec5e9fbee7af339ca7d4dd98c2086a4 (diff)
downloadphp-git-4bad49e3bcb8851b6bdf7ce8e8405a12d0eec6d0.tar.gz
added new glob() test
Diffstat (limited to 'ext/standard')
-rw-r--r--ext/standard/tests/file/glob_variation3.phpt19
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/standard/tests/file/glob_variation3.phpt b/ext/standard/tests/file/glob_variation3.phpt
new file mode 100644
index 0000000000..9e1e28baf9
--- /dev/null
+++ b/ext/standard/tests/file/glob_variation3.phpt
@@ -0,0 +1,19 @@
+--TEST--
+Test glob() function: ensure no platform difference
+--FILE--
+<?php
+$path = dirname(__FILE__);
+
+ini_set('open_basedir', NULL);
+var_dump(glob("$path/*.none"));
+
+ini_set('open_basedir', $path);
+var_dump(glob("$path/*.none"));
+
+?>
+==DONE==
+--EXPECT--
+array(0) {
+}
+bool(false)
+==DONE==