From cd8202694cff8d60fd4661c389276aa74afae48c Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Wed, 31 Aug 2011 04:24:48 +0000 Subject: [PATCH] fix tests --- ext/zlib/tests/gzencode_variation2.phpt | 2 +- ext/zlib/tests/ob_003.phpt | 6 ++---- ext/zlib/tests/ob_004.phpt | 5 ++--- ext/zlib/tests/ob_005.phpt | 3 ++- tests/security/open_basedir_linkinfo.phpt | 7 +++++-- tests/security/open_basedir_readlink.phpt | 6 ++---- 6 files changed, 14 insertions(+), 15 deletions(-) diff --git a/ext/zlib/tests/gzencode_variation2.phpt b/ext/zlib/tests/gzencode_variation2.phpt index e6fe7dd65cb..3234ccf395d 100644 --- a/ext/zlib/tests/gzencode_variation2.phpt +++ b/ext/zlib/tests/gzencode_variation2.phpt @@ -1,7 +1,7 @@ --TEST-- Test gzencode() function : variation - verify header contents with all encoding modes --XFAIL-- -Test will fail until bug #47178 resolved; missing gzip headers whne FORCE_DEFLATE specified +Test will fail until bug #47178 resolved; missing gzip headers when FORCE_DEFLATE specified --SKIPIF-- --EXPECTF-- -%s +‹%s +--EXPECTHEADERS-- Content-Encoding: gzip Vary: Accept-Encoding -%s - -‹%s diff --git a/ext/zlib/tests/ob_004.phpt b/ext/zlib/tests/ob_004.phpt index 3d3be9df7be..f5e6af552be 100644 --- a/ext/zlib/tests/ob_004.phpt +++ b/ext/zlib/tests/ob_004.phpt @@ -17,9 +17,8 @@ ob_start("ob_gzhandler"); echo "hi\n"; ?> --EXPECTF-- -%s +‹%s +--EXPECTHEADERS-- Content-Encoding: gzip Vary: Accept-Encoding -%s -‹%s diff --git a/ext/zlib/tests/ob_005.phpt b/ext/zlib/tests/ob_005.phpt index c266cb71f3b..19793936f90 100644 --- a/ext/zlib/tests/ob_005.phpt +++ b/ext/zlib/tests/ob_005.phpt @@ -18,4 +18,5 @@ ini_set("zlib.output_compression", 0); echo "hi\n"; ?> --EXPECTF-- -%shi +hi +--EXPECTHEADERS-- diff --git a/tests/security/open_basedir_linkinfo.phpt b/tests/security/open_basedir_linkinfo.phpt index ecbb00f74d4..f8be45305e8 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-- ---INI-- -open_basedir=. --FILE-- @@ -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] ***