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