From: Jani Taskinen Date: Wed, 9 Dec 2009 20:32:13 +0000 (+0000) Subject: - fix tests (this is ridiculous..) X-Git-Tag: php-5.4.0alpha1~191^2~2257 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=76d583e276471fdcd4fd3da1d536fe0f30e324d6;p=php - fix tests (this is ridiculous..) --- diff --git a/ext/zlib/tests/zlib_filter_deflate2.phpt b/ext/zlib/tests/zlib_filter_deflate2.phpt index 764a7606f4..5ca1e42462 100644 --- a/ext/zlib/tests/zlib_filter_deflate2.phpt +++ b/ext/zlib/tests/zlib_filter_deflate2.phpt @@ -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); diff --git a/ext/zlib/tests/zlib_filter_inflate2.phpt b/ext/zlib/tests/zlib_filter_inflate2.phpt index a2099b6f7a..f45c57e693 100644 --- a/ext/zlib/tests/zlib_filter_inflate2.phpt +++ b/ext/zlib/tests/zlib_filter_inflate2.phpt @@ -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);