mirror of
https://github.com/php/php-src.git
synced 2024-10-01 14:56:10 +00:00
24 lines
352 B
Plaintext
24 lines
352 B
Plaintext
|
--TEST--
|
||
|
bug #61820 using ob_gzhandler will complain about headers already sent when no compression
|
||
|
--SKIPIF--
|
||
|
<?php
|
||
|
extension_loaded("zlib") or die("skip");
|
||
|
?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
ob_start('ob_gzhandler');
|
||
|
|
||
|
echo "Hi there.\n";
|
||
|
ob_flush();
|
||
|
flush();
|
||
|
|
||
|
echo "This is confusing...\n";
|
||
|
ob_flush();
|
||
|
flush();
|
||
|
?>
|
||
|
DONE
|
||
|
--EXPECT--
|
||
|
Hi there.
|
||
|
This is confusing...
|
||
|
DONE
|