summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2011-08-31 04:24:48 +0000
committerStanislav Malyshev <stas@php.net>2011-08-31 04:24:48 +0000
commitcd8202694cff8d60fd4661c389276aa74afae48c (patch)
tree62596850a0c76dd62890ec455fd5838b1709ee8e /tests
parent1c88dcf39f95b9513ef9a018d5ee28c21b1119e6 (diff)
downloadphp-git-cd8202694cff8d60fd4661c389276aa74afae48c.tar.gz
fix tests
Diffstat (limited to 'tests')
-rw-r--r--tests/security/open_basedir_linkinfo.phpt7
-rw-r--r--tests/security/open_basedir_readlink.phpt6
2 files changed, 7 insertions, 6 deletions
diff --git a/tests/security/open_basedir_linkinfo.phpt b/tests/security/open_basedir_linkinfo.phpt
index ecbb00f74d..f8be45305e 100644
--- a/tests/security/open_basedir_linkinfo.phpt
+++ b/tests/security/open_basedir_linkinfo.phpt
@@ -6,10 +6,13 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
die('skip no symlinks on Windows');
}
?>
---INI--
-open_basedir=.
+--XFAIL--
+BUG: open_basedir cannot delete symlink to prohibited file. See also
+bugs 48111 and 52176.
--FILE--
<?php
+chdir(__DIR__);
+ini_set("open_basedir", ".");
require_once "open_basedir.inc";
$initdir = getcwd();
test_open_basedir_before("linkinfo", FALSE);
diff --git a/tests/security/open_basedir_readlink.phpt b/tests/security/open_basedir_readlink.phpt
index fe16d08542..b102ee9d9c 100644
--- a/tests/security/open_basedir_readlink.phpt
+++ b/tests/security/open_basedir_readlink.phpt
@@ -6,10 +6,10 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
die('skip no symlinks on Windows');
}
?>
---INI--
-open_basedir=.
--FILE--
<?php
+chdir(__DIR__);
+ini_set("open_basedir", ".");
require_once "open_basedir.inc";
$initdir = getcwd();
test_open_basedir_before("readlink", FALSE);
@@ -32,7 +32,6 @@ $target = ($initdir."/test/ok/ok.txt");
$symlink = ($initdir."/test/ok/symlink.txt");
var_dump(symlink($target, $symlink));
var_dump(readlink($symlink));
-var_dump(unlink($symlink));
test_open_basedir_after("readlink");
?>
@@ -69,6 +68,5 @@ bool(false)
Warning: readlink(): open_basedir restriction in effect. File(%s/test/ok/symlink.txt) is not within the allowed path(s): (.) in %s on line %d
bool(false)
-bool(true)
*** Finished testing open_basedir configuration [readlink] ***