]> granicus.if.org Git - php/commitdiff
- fix tests (this is ridiculous..)
authorJani Taskinen <jani@php.net>
Wed, 9 Dec 2009 20:32:13 +0000 (20:32 +0000)
committerJani Taskinen <jani@php.net>
Wed, 9 Dec 2009 20:32:13 +0000 (20:32 +0000)
ext/zlib/tests/zlib_filter_deflate2.phpt
ext/zlib/tests/zlib_filter_inflate2.phpt

index 764a7606f4234e3a312394544723abae7c9896a9..5ca1e42462f16ce60d84601f9f5a766047258a7d 100644 (file)
@@ -7,7 +7,7 @@ zlib.deflate (with level parameter set)
 $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));
+stream_filter_append($fp, 'zlib.deflate', STREAM_FILTER_WRITE, array(b'level' => 9));
 fwrite($fp, $text);
 fclose($fp);
 
index a2099b6f7a2f49364d9df61627cf1e4427f73127..f45c57e693f33bb5f371e8729403e8651e4cba67 100644 (file)
@@ -17,13 +17,13 @@ echo "1\n";
 $fp = fopen(dirname(__FILE__) . '/test.txt.gz', 'r');
 // zlib format
 $fp = fopen(dirname(__FILE__) . '/test.txt.gz', 'r');
-stream_filter_append($fp, 'zlib.inflate', STREAM_FILTER_READ, array('window' => 15+16));
+stream_filter_append($fp, 'zlib.inflate', STREAM_FILTER_READ, array(b'window' => 15+16));
 echo "2\n";
 echo fread($fp, 2000);
 fclose($fp);
 // auto-detect
 $fp = fopen(dirname(__FILE__) . '/test.txt.gz', 'r');
-stream_filter_append($fp, 'zlib.inflate', STREAM_FILTER_READ, array('window' => 15+32));
+stream_filter_append($fp, 'zlib.inflate', STREAM_FILTER_READ, array(b'window' => 15+32));
 echo "3\n";
 echo fread($fp, 2000);
 fclose($fp);