From: Pierre Joye Date: Fri, 22 Jun 2007 12:36:55 +0000 (+0000) Subject: - MFB: add test cases for #41655 X-Git-Tag: BEFORE_IMPORT_OF_MYSQLND~404 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fef59c06bdd81bcf5f0bdafd2a464350624641ec;p=php - MFB: add test cases for #41655 --- 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 +)