]> granicus.if.org Git - php/commitdiff
added new glob() test
authorAnatol Belski <ab@php.net>
Mon, 19 Aug 2013 09:17:13 +0000 (11:17 +0200)
committerAnatol Belski <ab@php.net>
Mon, 19 Aug 2013 09:17:13 +0000 (11:17 +0200)
ext/standard/tests/file/glob_variation3.phpt [new file with mode: 0644]

diff --git a/ext/standard/tests/file/glob_variation3.phpt b/ext/standard/tests/file/glob_variation3.phpt
new file mode 100644 (file)
index 0000000..9e1e28b
--- /dev/null
@@ -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==