]> granicus.if.org Git - php/commitdiff
Fix test
authorArnaud Le Blanc <lbarnaud@php.net>
Sun, 19 Apr 2009 22:01:23 +0000 (22:01 +0000)
committerArnaud Le Blanc <lbarnaud@php.net>
Sun, 19 Apr 2009 22:01:23 +0000 (22:01 +0000)
ext/zlib/tests/bug_40189.phpt

index aedf0619a16622e6777ae7466a30f7f46a1f3c8a..a90f5d6ea227f42f915e0a1c693fa6cd085e107d 100644 (file)
@@ -7,10 +7,10 @@ allow_url_fopen=1
 --FILE--
 <?php
 // this string is an excerpt of a phar archive that caused an infinite loop
-$a = "\x3\x0\x85\x46\x2f\x7c\xc2\xaa\x69\x2b\x6d\xe5\xdb\xfe\xe4\x21\x8f\x0\x97\x21\x1d\x2\x0\x0\x0\x47\x42\x4d\x42";
+$a = b"\x3\x0\x85\x46\x2f\x7c\xc2\xaa\x69\x2b\x6d\xe5\xdb\xfe\xe4\x21\x8f\x0\x97\x21\x1d\x2\x0\x0\x0\x47\x42\x4d\x42";
 var_dump(base64_encode($a));
 $gp = fopen(dirname(__FILE__) . '/test.other', 'wb');
-$fp = fopen('data://text/plain;base64,AwCFRi98wqppK23l2/7kIY8AlyEdAgAAAEdCTUI=', 'r');
+$fp = fopen(b'data://text/plain;base64,AwCFRi98wqppK23l2/7kIY8AlyEdAgAAAEdCTUI=', 'rb');
 stream_filter_append($fp, 'zlib.inflate', STREAM_FILTER_READ);
 var_dump(stream_copy_to_stream($fp, $gp, 5));
 fclose($fp);
@@ -23,5 +23,5 @@ var_dump(file_get_contents(dirname(__FILE__) . '/test.other'));
 ?>
 --EXPECT--
 string(40) "AwCFRi98wqppK23l2/7kIY8AlyEdAgAAAEdCTUI="
-int(0)
+bool(false)
 string(0) ""