diff options
author | Hannes Magnusson <bjori@php.net> | 2008-12-09 10:20:11 +0000 |
---|---|---|
committer | Hannes Magnusson <bjori@php.net> | 2008-12-09 10:20:11 +0000 |
commit | 76669fce2349afb04c2e9c8a91677293b514e56e (patch) | |
tree | 37c67d567fb398d0041ef09c69019408781aacd2 /ext/standard | |
parent | ac30b3a8de3ac7cb8cc7146425e495b530aa9014 (diff) | |
download | php-git-76669fce2349afb04c2e9c8a91677293b514e56e.tar.gz |
MFH: - Changed open_basedir to allow tightening in runtime contexts. (Sara)
- Add test
Diffstat (limited to 'ext/standard')
-rw-r--r-- | ext/standard/tests/directory/open_basedir_001.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/standard/tests/directory/open_basedir_001.phpt b/ext/standard/tests/directory/open_basedir_001.phpt new file mode 100644 index 0000000000..092eac27f0 --- /dev/null +++ b/ext/standard/tests/directory/open_basedir_001.phpt @@ -0,0 +1,17 @@ +--TEST-- +openbase_dir runtime tightning +--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" + |