From 1b894c90e7585ed1586620945cf14710f2e930e7 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Fri, 22 Jun 2007 12:35:41 +0000 Subject: [PATCH] - MFB: add test cases for #41655 --- ext/standard/tests/file/bug41655_1.phpt | 10 ++++++++++ ext/standard/tests/file/bug41655_2.phpt | 16 ++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 ext/standard/tests/file/bug41655_1.phpt create mode 100644 ext/standard/tests/file/bug41655_2.phpt diff --git a/ext/standard/tests/file/bug41655_1.phpt b/ext/standard/tests/file/bug41655_1.phpt new file mode 100644 index 0000000000..9b047bcace --- /dev/null +++ b/ext/standard/tests/file/bug41655_1.phpt @@ -0,0 +1,10 @@ +--TEST-- +Bug #41655: open_basedir bypass via glob() +--INI-- +open_basedir=/tmp +--FILE-- + +--EXPECTF-- +Warning: glob() [%s]: open_basedir restriction in effect. File(.) is not within the allowed path(s): (/tmp) in %s on line %d diff --git a/ext/standard/tests/file/bug41655_2.phpt b/ext/standard/tests/file/bug41655_2.phpt new file mode 100644 index 0000000000..a675d599a1 --- /dev/null +++ b/ext/standard/tests/file/bug41655_2.phpt @@ -0,0 +1,16 @@ +--TEST-- +Bug #41655: open_basedir bypass via glob() +--INI-- +open_basedir=/ +--FILE-- + +--EXPECTF-- +Array +( + [%d] => %sbug41655_1.phpt + [%d] => %sbug41655_2.phpt +) -- 2.50.1