svn: /php/php-src/trunk/ext/zlib/tests/ zlib_filter_deflate2.phpt zlib_filter_inflate2.phpt
| From: | Jani Taskinen | Date: | Wed, 09 Dec 2009 20:32:13 +0000 |
| Subject: | svn: /php/php-src/trunk/ext/zlib/tests/ zlib_filter_deflate2.phpt zlib_filter_inflate2.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-61221@lists.php.net to get a copy of this message | ||
jani Wed, 09 Dec 2009 20:32:13 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=291930
Log:
- fix tests (this is ridiculous..)
Changed paths:
U php/php-src/trunk/ext/zlib/tests/zlib_filter_deflate2.phpt
U php/php-src/trunk/ext/zlib/tests/zlib_filter_inflate2.phpt
Modified: php/php-src/trunk/ext/zlib/tests/zlib_filter_deflate2.phpt
===================================================================
--- php/php-src/trunk/ext/zlib/tests/zlib_filter_deflate2.phpt 2009-12-09 20:21:42 UTC (rev 291929)
+++ php/php-src/trunk/ext/zlib/tests/zlib_filter_deflate2.phpt 2009-12-09 20:32:13 UTC (rev 291930)
@@ -7,7 +7,7 @@
$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);
Modified: php/php-src/trunk/ext/zlib/tests/zlib_filter_inflate2.phpt
===================================================================
--- php/php-src/trunk/ext/zlib/tests/zlib_filter_inflate2.phpt 2009-12-09 20:21:42 UTC (rev 291929)
+++ php/php-src/trunk/ext/zlib/tests/zlib_filter_inflate2.phpt 2009-12-09 20:32:13 UTC (rev 291930)
@@ -17,13 +17,13 @@
$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);