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