From 76d583e276471fdcd4fd3da1d536fe0f30e324d6 Mon Sep 17 00:00:00 2001 From: Jani Taskinen Date: Wed, 9 Dec 2009 20:32:13 +0000 Subject: [PATCH] - fix tests (this is ridiculous..) --- ext/zlib/tests/zlib_filter_deflate2.phpt | 2 +- ext/zlib/tests/zlib_filter_inflate2.phpt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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); -- 2.50.1