xref: /PHP-7.3/tests/basic/req44164.phpt (revision 3f72c77c)
1--TEST--
2Req #44164 (Handle "Content-Length" HTTP header when zlib.output_compression active)
3--SKIPIF--
4<?php
5if (!function_exists('gzdeflate'))
6    die("skip zlib extension required");
7?>
8--INI--
9zlib.output_compression=On
10--ENV--
11HTTP_ACCEPT_ENCODING=gzip
12--FILE--
13<?php
14header("Content-length: 200");
15echo str_repeat("a", 200);
16--EXPECT--
17aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
18