lbarnaud Sun Apr 19 22:01:24 2009 UTC Modified files: /php-src/ext/zlib/tests bug_40189.phpt Log: Fix test http://cvs.php.net/viewvc.cgi/php-src/ext/zlib/tests/bug_40189.phpt?r1=1.3&r2=1.4&diff_format=u Index: php-src/ext/zlib/tests/bug_40189.phpt diff -u php-src/ext/zlib/tests/bug_40189.phpt:1.3 php-src/ext/zlib/tests/bug_40189.phpt:1.4 --- php-src/ext/zlib/tests/bug_40189.phpt:1.3 Sun Apr 13 21:41:45 2008 +++ php-src/ext/zlib/tests/bug_40189.phpt Sun Apr 19 22:01:23 2009 @@ -7,10 +7,10 @@ --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 @@ ?> --EXPECT-- string(40) "AwCFRi98wqppK23l2/7kIY8AlyEdAgAAAEdCTUI=" -int(0) +bool(false) string(0) ""
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php