mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
fix tests
This commit is contained in:
parent
1c88dcf39f
commit
cd8202694c
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -17,9 +17,8 @@ ob_start("ob_gzhandler");
|
||||
echo "hi\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
%s
|
||||
‹%s
|
||||
--EXPECTHEADERS--
|
||||
Content-Encoding: gzip
|
||||
Vary: Accept-Encoding
|
||||
%s
|
||||
|
||||
<1F>%s
|
||||
|
@ -18,4 +18,5 @@ ini_set("zlib.output_compression", 0);
|
||||
echo "hi\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
%shi
|
||||
hi
|
||||
--EXPECTHEADERS--
|
||||
|
@ -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);
|
||||
|
@ -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] ***
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user