xref: /php-src/tests/basic/req44164.phpt (revision 9871a624)
1--TEST--
2Req #44164 (Handle "Content-Length" HTTP header when zlib.output_compression active)
3--EXTENSIONS--
4zlib
5--INI--
6zlib.output_compression=On
7--ENV--
8HTTP_ACCEPT_ENCODING=gzip
9--FILE--
10<?php
11header("Content-length: 200");
12echo str_repeat("a", 200);
13?>
14--EXPECT--
15aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
16