php-src/tests/basic/req44164.phpt
2010-11-18 04:09:02 +00:00

18 lines
561 B
PHP

--TEST--
Req #44164 (Handle "Content-Length" HTTP header when zlib.output_compression active)
--SKIPIF--
<?php
if (!function_exists('gzdeflate'))
die("skip zlib extension required");
?>
--INI--
zlib.output_compression=On
--ENV--
HTTP_ACCEPT_ENCODING=gzip
--FILE--
<?php
header("Content-length: 200");
echo str_repeat("a", 200);
--EXPECT--
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa