From 86d2fafded73511e762671a60d6935ac87d6e39d Mon Sep 17 00:00:00 2001 From: Matt Ficken Date: Fri, 25 May 2012 10:44:59 +0200 Subject: [PATCH] Fixed bug #62149 Test Bug - ext/curl/tests/bug61948 --- ext/curl/tests/bug61948-win32.phpt | 25 +++++++++++++++++++++++++ ext/curl/tests/bug61948.phpt | 5 ++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 ext/curl/tests/bug61948-win32.phpt diff --git a/ext/curl/tests/bug61948-win32.phpt b/ext/curl/tests/bug61948-win32.phpt new file mode 100644 index 0000000000..dc86526b7b --- /dev/null +++ b/ext/curl/tests/bug61948-win32.phpt @@ -0,0 +1,25 @@ +--TEST-- +Bug #61948 (CURLOPT_COOKIEFILE '' raises open_basedir restriction) +--SKIPIF-- + +--INI-- +open_basedir="c:/tmp" +--FILE-- + +--EXPECTF-- +%a + +Warning: curl_setopt(): open_basedir restriction in effect. File(c:/tmp/foo) is not within the allowed path(s): (c:/tmp) in %sbug61948-win32.php on line %d +bool(false) + +Warning: curl_setopt(): open_basedir restriction in effect. File(c:/xxx/bar) is not within the allowed path(s): (c:/tmp) in %sbug61948-win32.php on line %d +bool(false) diff --git a/ext/curl/tests/bug61948.phpt b/ext/curl/tests/bug61948.phpt index a03fc3b600..23bbda7d5f 100644 --- a/ext/curl/tests/bug61948.phpt +++ b/ext/curl/tests/bug61948.phpt @@ -1,7 +1,10 @@ --TEST-- Bug #61948 (CURLOPT_COOKIEFILE '' raises open_basedir restriction) --SKIPIF-- - + --INI-- open_basedir="/tmp" --FILE-- -- 2.40.0