xref: /PHP-7.1/ext/zlib/tests/bug61820.phpt (revision df00b64c)
1--TEST--
2bug #61820 using ob_gzhandler will complain about headers already sent when no compression
3--SKIPIF--
4<?php
5extension_loaded("zlib") or die("skip");
6?>
7--FILE--
8<?php
9ob_start('ob_gzhandler');
10
11echo "Hi there.\n";
12ob_flush();
13flush();
14
15echo "This is confusing...\n";
16ob_flush();
17flush();
18?>
19DONE
20--EXPECT--
21Hi there.
22This is confusing...
23DONE
24