summaryrefslogtreecommitdiff
path: root/ext/zlib/tests
diff options
context:
space:
mode:
authorMichael Wallner <mike@php.net>2012-04-24 17:50:00 (GMT)
committerMichael Wallner <mike@php.net>2012-04-24 17:50:00 (GMT)
commitdf00b64cb93dafbe5ae47bf733e826b54b32ae37 (patch)
treef4360b7792e25e56b37986fb00f814abeacd0c82 /ext/zlib/tests
parentf21376d6688ef51d6d6764016f8a4c2e2fd57549 (diff)
downloadphp-df00b64cb93dafbe5ae47bf733e826b54b32ae37.tar.gz
fixed bug #61820
using ob_gzhandler will complain about headers already sent when no compression the Vary header should only be sent on the PHP_OUTPUT_HANDLER_START event
Diffstat (limited to 'ext/zlib/tests')
-rw-r--r--ext/zlib/tests/bug61820.phpt23
1 files changed, 23 insertions, 0 deletions
diff --git a/ext/zlib/tests/bug61820.phpt b/ext/zlib/tests/bug61820.phpt
new file mode 100644
index 0000000..6f33b54
--- /dev/null
+++ b/ext/zlib/tests/bug61820.phpt
@@ -0,0 +1,23 @@
+--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