tony2001 Tue May 22 09:45:12 2007 UTC
Modified files:
/php-src/ext/gd/tests bug39780.phpt createfromwbmp2.phpt
Log:
fix tests
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/tests/bug39780.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/gd/tests/bug39780.phpt
diff -u php-src/ext/gd/tests/bug39780.phpt:1.1
php-src/ext/gd/tests/bug39780.phpt:1.2
--- php-src/ext/gd/tests/bug39780.phpt:1.1 Sun Dec 10 01:28:01 2006
+++ php-src/ext/gd/tests/bug39780.phpt Tue May 22 09:45:12 2007
@@ -12,8 +12,7 @@
var_dump($im);
?>
--EXPECTF--
-
-Warning: imagecreatefrompng(): gd-png: fatal libpng error: IDAT: CRC error in
%s on line %d
+Warning: imagecreatefrompng(): gd-png: fatal libpng error: Read Error:
truncated data in %s on line %d
Warning: imagecreatefrompng(): gd-png error: setjmp returns error condition in
%s on line %d
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/tests/createfromwbmp2.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/gd/tests/createfromwbmp2.phpt
diff -u php-src/ext/gd/tests/createfromwbmp2.phpt:1.2
php-src/ext/gd/tests/createfromwbmp2.phpt:1.3
--- php-src/ext/gd/tests/createfromwbmp2.phpt:1.2 Fri Apr 20 21:00:07 2007
+++ php-src/ext/gd/tests/createfromwbmp2.phpt Tue May 22 09:45:12 2007
@@ -14,22 +14,22 @@
//write header
$c = 0;
-fputs($fp, chr($c), 1);
-fputs($fp, $c, 1);
[EMAIL PROTECTED]($fp, chr($c), 1);
[EMAIL PROTECTED]($fp, $c, 1);
//write width = 2^32 / 4 + 1
$c = 0x84;
-fputs($fp, chr($c), 1);
[EMAIL PROTECTED]($fp, chr($c), 1);
$c = 0x80;
-fputs($fp, chr($c), 1);
-fputs($fp, chr($c), 1);
-fputs($fp, chr($c), 1);
[EMAIL PROTECTED]($fp, chr($c), 1);
[EMAIL PROTECTED]($fp, chr($c), 1);
[EMAIL PROTECTED]($fp, chr($c), 1);
$c = 0x01;
-fputs($fp, chr($c), 1);
[EMAIL PROTECTED]($fp, chr($c), 1);
/*write height = 4*/
$c = 0x04;
-fputs($fp, chr($c), 1);
[EMAIL PROTECTED]($fp, chr($c), 1);
/*write some data to cause overflow*/
for ($i=0; $i<10000; $i++) {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php