Return to req44164.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / basic |
1.1 ! misho 1: --TEST-- ! 2: Req #44164 (Handle "Content-Length" HTTP header when zlib.output_compression active) ! 3: --SKIPIF-- ! 4: <?php ! 5: if (!function_exists('gzdeflate')) ! 6: die("skip zlib extension required"); ! 7: ?> ! 8: --INI-- ! 9: zlib.output_compression=On ! 10: --ENV-- ! 11: HTTP_ACCEPT_ENCODING=gzip ! 12: --FILE-- ! 13: <?php ! 14: header("Content-length: 200"); ! 15: echo str_repeat("a", 200); ! 16: --EXPECT-- ! 17: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa