summaryrefslogtreecommitdiff
path: root/ext/zlib/tests/ob_002.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/zlib/tests/ob_002.phpt')
-rw-r--r--ext/zlib/tests/ob_002.phpt17
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/zlib/tests/ob_002.phpt b/ext/zlib/tests/ob_002.phpt
new file mode 100644
index 0000000..5601440
--- /dev/null
+++ b/ext/zlib/tests/ob_002.phpt
@@ -0,0 +1,17 @@
+--TEST--
+zlib.output_compression
+--SKIPIF--
+<?php
+if (!extension_loaded("zlib")) die("skip need ext/zlib");
+?>
+--INI--
+zlib.output_compression=1
+--ENV--
+HTTP_ACCEPT_ENCODING=gzip
+--FILE--
+<?php
+ini_set("zlib.output_compression", 0);
+echo "hi\n";
+?>
+--EXPECTF--
+hi