cvs: php-src(PHP_5_2) /ext/gd/tests imageloadfont_invalid.phpt
| From: | Jani Taskinen | Date: | Thu, 14 Aug 2008 20:55:31 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /ext/gd/tests imageloadfont_invalid.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-52342@lists.php.net to get a copy of this message | ||
jani Thu Aug 14 20:55:31 2008 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/gd/tests imageloadfont_invalid.phpt
Log:
do not leave crap behind
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/tests/imageloadfont_invalid.phpt?r1=1.1.4.2&r2=1.1.4.3&diff_format=u
Index: php-src/ext/gd/tests/imageloadfont_invalid.phpt
diff -u php-src/ext/gd/tests/imageloadfont_invalid.phpt:1.1.4.2
php-src/ext/gd/tests/imageloadfont_invalid.phpt:1.1.4.3
--- php-src/ext/gd/tests/imageloadfont_invalid.phpt:1.1.4.2 Thu Jul 17 22:58:23 2008
+++ php-src/ext/gd/tests/imageloadfont_invalid.phpt Thu Aug 14 20:55:31 2008
@@ -17,6 +17,7 @@
$font = imageloadfont($filename);
$black = imagecolorallocate($image, 0, 0, 0);
imagestring($image, $font, 0, 0, "Hello", $black);
+unlink($filename);
?>
--EXPECTF--
Warning: imageloadfont(): gd warning: product of memory allocation multiplication would exceed
INT_MAX, failing operation gracefully