cvs: php-src /ext/zlib/tests bug_40189.phpt

From: Date: Thu, 07 Feb 2008 12:15:42 +0000
Subject: cvs: php-src /ext/zlib/tests bug_40189.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-48391@lists.php.net to get a copy of this message
jani Thu Feb 7 12:15:42 2008 UTC Modified files: /php-src/ext/zlib/tests bug_40189.phpt Log: - Fix test (no files in "root" please) http://cvs.php.net/viewvc.cgi/php-src/ext/zlib/tests/bug_40189.phpt?r1=1.1&r2=1.2&diff_format=u Index: php-src/ext/zlib/tests/bug_40189.phpt diff -u php-src/ext/zlib/tests/bug_40189.phpt:1.1 php-src/ext/zlib/tests/bug_40189.phpt:1.2 --- php-src/ext/zlib/tests/bug_40189.phpt:1.1 Sat Jan 12 21:25:43 2008 +++ php-src/ext/zlib/tests/bug_40189.phpt Thu Feb 7 12:15:41 2008 @@ -7,13 +7,17 @@ // 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"; var_dump(base64_encode($a)); -$gp = fopen('test.other', 'wb'); +$gp = fopen(dirname(__FILE__) . '/test.other', 'wb'); $fp = fopen('data://text/plain;base64,AwCFRi98wqppK23l2/7kIY8AlyEdAgAAAEdCTUI=', 'r'); stream_filter_append($fp, 'zlib.inflate', STREAM_FILTER_READ); var_dump(stream_copy_to_stream($fp, $gp, 5)); fclose($fp); fclose($gp); -var_dump(file_get_contents('test.other')); +var_dump(file_get_contents(dirname(__FILE__) . '/test.other')); +?> +--CLEAN-- +<?php +@unlink(dirname(__FILE__) . '/test.other'); ?> --EXPECT-- string(40) "AwCFRi98wqppK23l2/7kIY8AlyEdAgAAAEdCTUI="

« previous php.cvs (#48391) next »