summaryrefslogtreecommitdiff
path: root/ext/zlib/tests
diff options
context:
space:
mode:
authorMichael Wallner <mike@php.net>2012-04-24 18:35:49 (GMT)
committerMichael Wallner <mike@php.net>2012-04-24 18:35:49 (GMT)
commit7c93a16477d7e4d6e0386d0613558360f036d57b (patch)
treede04c6d93dfb16643510519a72400b0f133f0dc2 /ext/zlib/tests
parentdf00b64cb93dafbe5ae47bf733e826b54b32ae37 (diff)
downloadphp-7c93a16477d7e4d6e0386d0613558360f036d57b.tar.gz
fix bug #61443
Since upgrade to PHP 5.4, we can't change zlib.output_compression on the fly the check for PHP_OUTPUT_WRITTEN was over-zealous
Diffstat (limited to 'ext/zlib/tests')
-rw-r--r--ext/zlib/tests/bug61443.phpt15
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/zlib/tests/bug61443.phpt b/ext/zlib/tests/bug61443.phpt
new file mode 100644
index 0000000..ea2fa68
--- /dev/null
+++ b/ext/zlib/tests/bug61443.phpt
@@ -0,0 +1,15 @@
+--TEST--
+bug #61443
+--SKIPIF--
+<?php
+extension_loaded("zlib") or die("skip");
+?>
+--FILE--
+<?php
+ob_start(); echo "foo\n"; ob_get_clean();
+if(!headers_sent()) ini_set('zlib.output_compression', true); echo "end\n";
+?>
+DONE
+--EXPECTF--
+end
+DONE