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 | 423816ef64ebec79146d3dffcfcbbc494e897ee0 (patch) | |
tree | 66731131e271246ecb202d744e7a849fda364676 /tests | |
parent | 3d107d07eed883b244fddb33ac539dadb76d2f2a (diff) | |
download | php-git-423816ef64ebec79146d3dffcfcbbc494e897ee0.tar.gz |
- move it to the right place
Diffstat (limited to 'tests')
-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" + |