dkelsey Wed Jan 21 22:26:49 2009 UTC
Modified files:
/php-src/ext/zlib/tests gzseek_variation7.phpt
zlib_scheme_file_put_contents_basic.phpt
zlib_scheme_copy_variation2.phpt
gzopen_variation8.phpt
Log:
correct minor mistakes in the php6 version of the zlib tests
http://cvs.php.net/viewvc.cgi/php-src/ext/zlib/tests/gzseek_variation7.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/zlib/tests/gzseek_variation7.phpt
diff -u php-src/ext/zlib/tests/gzseek_variation7.phpt:1.1
php-src/ext/zlib/tests/gzseek_variation7.phpt:1.2
--- php-src/ext/zlib/tests/gzseek_variation7.phpt:1.1 Wed Jan 21 15:24:11 2009
+++ php-src/ext/zlib/tests/gzseek_variation7.phpt Wed Jan 21 22:26:48 2009
@@ -10,8 +10,8 @@
<?php
$f = "temp3.txt.gz";
$h = gzopen($f, 'w');
-$str1 = "This is the first line.";
-$str2 = "This is the second line.";
+$str1 = b"This is the first line.";
+$str2 = b"This is the second line.";
gzwrite($h, $str1);
echo "tell=";
var_dump(gztell($h));
http://cvs.php.net/viewvc.cgi/php-src/ext/zlib/tests/zlib_scheme_file_put_contents_basic.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/zlib/tests/zlib_scheme_file_put_contents_basic.phpt
diff -u php-src/ext/zlib/tests/zlib_scheme_file_put_contents_basic.phpt:1.1
php-src/ext/zlib/tests/zlib_scheme_file_put_contents_basic.phpt:1.2
--- php-src/ext/zlib/tests/zlib_scheme_file_put_contents_basic.phpt:1.1 Wed Jan
21 15:24:11 2009
+++ php-src/ext/zlib/tests/zlib_scheme_file_put_contents_basic.phpt Wed Jan
21 22:26:48 2009
@@ -10,7 +10,7 @@
<?php
$outputFileName = __FILE__.'tmp';
$outFile = "compress.zlib://$outputFileName";
-$data = <<<EOT
+$data = b<<<EOT
Here is some plain
text to be read
and displayed.
http://cvs.php.net/viewvc.cgi/php-src/ext/zlib/tests/zlib_scheme_copy_variation2.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/zlib/tests/zlib_scheme_copy_variation2.phpt
diff -u php-src/ext/zlib/tests/zlib_scheme_copy_variation2.phpt:1.1
php-src/ext/zlib/tests/zlib_scheme_copy_variation2.phpt:1.2
--- php-src/ext/zlib/tests/zlib_scheme_copy_variation2.phpt:1.1 Wed Jan 21
15:24:11 2009
+++ php-src/ext/zlib/tests/zlib_scheme_copy_variation2.phpt Wed Jan 21
22:26:48 2009
@@ -8,7 +8,7 @@
?>
--FILE--
<?php
-$org_data = <<<EOT
+$org_data = b<<<EOT
uncompressed contents of 004.txt.gz is:
When you're taught through feelings
Destiny flying high above
http://cvs.php.net/viewvc.cgi/php-src/ext/zlib/tests/gzopen_variation8.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/zlib/tests/gzopen_variation8.phpt
diff -u php-src/ext/zlib/tests/gzopen_variation8.phpt:1.1
php-src/ext/zlib/tests/gzopen_variation8.phpt:1.2
--- php-src/ext/zlib/tests/gzopen_variation8.phpt:1.1 Wed Jan 21 15:24:11 2009
+++ php-src/ext/zlib/tests/gzopen_variation8.phpt Wed Jan 21 22:26:48 2009
@@ -16,7 +16,7 @@
echo "*** Testing gzopen() : variation ***\n";
-$data = <<<EOT
+$data = b<<<EOT
Here is some plain
text to be read
and displayed.
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php