summaryrefslogtreecommitdiff
path: root/tests/security
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2011-09-06 09:23:10 +0000
committerPierre Joye <pajoye@php.net>2011-09-06 09:23:10 +0000
commitfafe2472652dee8908b704f10bfefedad231745c (patch)
tree70151ef334be752c0f0ed81bf6bdd0abe7c92594 /tests/security
parentc21652d6e14a897d6c5cfad3531ab6058d39804e (diff)
downloadphp-git-fafe2472652dee8908b704f10bfefedad231745c.tar.gz
- move it to the right place
Diffstat (limited to 'tests/security')
-rw-r--r--tests/security/open_basedir_001.phpt22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/security/open_basedir_001.phpt b/tests/security/open_basedir_001.phpt
new file mode 100644
index 0000000000..e05861a81d
--- /dev/null
+++ b/tests/security/open_basedir_001.phpt
@@ -0,0 +1,22 @@
+--TEST--
+openbase_dir runtime tightning
+--SKIPIF--
+<?php
+if (substr(PHP_OS, 0, 3) == 'WIN') {
+ die('skip.. only for unix');
+}
+--INI--
+open_basedir=/usr/local
+--FILE--
+<?php
+var_dump(ini_set("open_basedir", "/usr/local/bin"));
+var_dump(ini_get("open_basedir"));
+var_dump(ini_set("open_basedir", "/usr"));
+var_dump(ini_get("open_basedir"));
+?>
+--EXPECT--
+string(10) "/usr/local"
+string(14) "/usr/local/bin"
+bool(false)
+string(14) "/usr/local/bin"
+