summaryrefslogtreecommitdiff
path: root/ext/zlib/tests
diff options
context:
space:
mode:
authorJani Taskinen <jani@php.net>2009-08-31 21:18:55 (GMT)
committerJani Taskinen <jani@php.net>2009-08-31 21:18:55 (GMT)
commit6bb0603c4fc2e26d4c44230232d46d1de313789e (patch)
tree2a820a969f0d6f718fb3f8be8dd79a45b1b2b16f /ext/zlib/tests
parentb964306fd71e72a661c59f06d1ce72bb7ae21a61 (diff)
downloadphp-6bb0603c4fc2e26d4c44230232d46d1de313789e.tar.gz
- Fixed zlib.deflate compress filter to actually accpet level parameter.
Diffstat (limited to 'ext/zlib/tests')
-rw-r--r--ext/zlib/tests/zlib_filter_deflate2.phpt16
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/zlib/tests/zlib_filter_deflate2.phpt b/ext/zlib/tests/zlib_filter_deflate2.phpt
new file mode 100644
index 0000000..764a760
--- /dev/null
+++ b/ext/zlib/tests/zlib_filter_deflate2.phpt
@@ -0,0 +1,16 @@
+--TEST--
+zlib.deflate (with level parameter set)
+--SKIPIF--
+<?php if (!extension_loaded("zlib")) print "skip"; ?>
+--FILE--
+<?php
+$text = 'I am the very model of a modern major general, I\'ve information vegetable, animal, and mineral.';
+
+$fp = fopen('php://stdout', 'w');
+stream_filter_append($fp, 'zlib.deflate', STREAM_FILTER_WRITE, array('level' => 9));
+fwrite($fp, $text);
+fclose($fp);
+
+?>
+--EXPECT--
+A Dѫ΍1MBUv_(EL/aP=Pi ;6fCe4U9;w5 m /