fix tests

This commit is contained in:
Stanislav Malyshev 2011-08-31 04:24:48 +00:00
parent 1c88dcf39f
commit cd8202694c
6 changed files with 14 additions and 15 deletions

View File

@ -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--
<?php

View File

@ -17,9 +17,7 @@ ini_set("zlib.output_compression", 1);
echo "hi\n";
?>
--EXPECTF--
%s
%s
--EXPECTHEADERS--
Content-Encoding: gzip
Vary: Accept-Encoding
%s
<1F>%s

View File

@ -17,9 +17,8 @@ ob_start("ob_gzhandler");
echo "hi\n";
?>
--EXPECTF--
%s
%s
--EXPECTHEADERS--
Content-Encoding: gzip
Vary: Accept-Encoding
%s
<1F>%s

View File

@ -18,4 +18,5 @@ ini_set("zlib.output_compression", 0);
echo "hi\n";
?>
--EXPECTF--
%shi
hi
--EXPECTHEADERS--

View File

@ -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--
<?php
chdir(__DIR__);
ini_set("open_basedir", ".");
require_once "open_basedir.inc";
$initdir = getcwd();
test_open_basedir_before("linkinfo", FALSE);

View File

@ -6,10 +6,10 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
die('skip no symlinks on Windows');
}
?>
--INI--
open_basedir=.
--FILE--
<?php
chdir(__DIR__);
ini_set("open_basedir", ".");
require_once "open_basedir.inc";
$initdir = getcwd();
test_open_basedir_before("readlink", FALSE);
@ -32,7 +32,6 @@ $target = ($initdir."/test/ok/ok.txt");
$symlink = ($initdir."/test/ok/symlink.txt");
var_dump(symlink($target, $symlink));
var_dump(readlink($symlink));
var_dump(unlink($symlink));
test_open_basedir_after("readlink");
?>
@ -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] ***