From 0ccb772f100ef356814b418a8b809a5c42d600ed Mon Sep 17 00:00:00 2001 From: Ant Phillips Date: Thu, 24 Apr 2008 16:40:53 +0000 Subject: [PATCH] Extra open_basedir tests --- .../file/open_basedir_copy_variation1.phpt | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 ext/standard/tests/file/open_basedir_copy_variation1.phpt diff --git a/ext/standard/tests/file/open_basedir_copy_variation1.phpt b/ext/standard/tests/file/open_basedir_copy_variation1.phpt new file mode 100644 index 0000000000..de532e12cb --- /dev/null +++ b/ext/standard/tests/file/open_basedir_copy_variation1.phpt @@ -0,0 +1,35 @@ +--TEST-- +Test open_basedir configuration +--INI-- +open_basedir=. +--FILE-- + +--CLEAN-- + +--EXPECTF-- +*** Testing open_basedir configuration [copy] *** +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) + +Warning: copy(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d +bool(false) + +Warning: unlink(copy.txt): No such file or directory in %s on line %d +bool(false) +*** Finished testing open_basedir configuration [copy] *** + -- 2.40.0