diff options
author | Pierre Joye <pajoye@php.net> | 2011-09-06 09:23:10 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2011-09-06 09:23:10 +0000 |
commit | fafe2472652dee8908b704f10bfefedad231745c (patch) | |
tree | 70151ef334be752c0f0ed81bf6bdd0abe7c92594 /tests/security | |
parent | c21652d6e14a897d6c5cfad3531ab6058d39804e (diff) | |
download | php-git-fafe2472652dee8908b704f10bfefedad231745c.tar.gz |
- move it to the right place
Diffstat (limited to 'tests/security')
-rw-r--r-- | tests/security/open_basedir_001.phpt | 22 |
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" + |