]> granicus.if.org Git - php/commitdiff
correct minor mistakes in the php6 version of the zlib tests
authorDave Kelsey <dkelsey@php.net>
Wed, 21 Jan 2009 22:26:48 +0000 (22:26 +0000)
committerDave Kelsey <dkelsey@php.net>
Wed, 21 Jan 2009 22:26:48 +0000 (22:26 +0000)
ext/zlib/tests/gzopen_variation8.phpt
ext/zlib/tests/gzseek_variation7.phpt
ext/zlib/tests/zlib_scheme_copy_variation2.phpt
ext/zlib/tests/zlib_scheme_file_put_contents_basic.phpt

index bb0126227f834c9a5656d39800a33914a2b5b74d..e7c83701a4c8fde3ca435c2b8f238bcbc561f392 100644 (file)
@@ -16,7 +16,7 @@ if (!extension_loaded("zlib")) {
 
 echo "*** Testing gzopen() : variation ***\n";
 
-$data = <<<EOT
+$data = b<<<EOT
 Here is some plain
 text to be read
 and displayed.
index aab0834652208f40d4fa20312ef4defd52421dfb..5840739684acdc5f12d0392abeceddcce2318af0 100644 (file)
@@ -10,8 +10,8 @@ if (!extension_loaded("zlib")) {
 <?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));
index 0b56ec430adb244ae76d493b5b1a5a2213d98130..576de944ce7852af907420626eaa4e3f2c0fccca 100644 (file)
@@ -8,7 +8,7 @@ if (!extension_loaded("zlib")) {
 ?>
 --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
index 8ea41df5a894ae7ff55743a25b75097f22984cd4..77715339493bbc2095dd6e346aa83e0981d73301 100644 (file)
@@ -10,7 +10,7 @@ if (!extension_loaded("zlib")) {
 <?php
 $outputFileName = __FILE__.'tmp';
 $outFile = "compress.zlib://$outputFileName";
-$data = <<<EOT
+$data = b<<<EOT
 Here is some plain
 text to be read
 and displayed.