cvs: php-src /ext/gd/tests bug27582_1.phpt
| From: | Pierre-Alain Joye | Date: | Sun, 14 Mar 2004 03:21:27 +0000 |
| Subject: | cvs: php-src /ext/gd/tests bug27582_1.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-26627@lists.php.net to get a copy of this message | ||
pajoye Sat Mar 13 22:21:27 2004 EDT
Modified files:
/php-src/ext/gd/tests bug27582_1.phpt
Log:
- add a 2nd test for #27582
http://cvs.php.net/diff.php/php-src/ext/gd/tests/bug27582_1.phpt?r1=1.1&r2=1.2&ty=u
Index: php-src/ext/gd/tests/bug27582_1.phpt
diff -u /dev/null php-src/ext/gd/tests/bug27582_1.phpt:1.2
--- /dev/null Sat Mar 13 22:21:27 2004
+++ php-src/ext/gd/tests/bug27582_1.phpt Sat Mar 13 22:21:26 2004
@@ -0,0 +1,23 @@
+--TEST--
+gdimagefill() function (Bug #19366 (fixed in bundled libgd))
+--SKIPIF--
+<?php
+ if (!extension_loaded('gd')) die("skip gd extension not available\n");
+ if (!GD_BUNDLED) die('skip external GD libraries always fail');
+?>
+--FILE--
+<?php
+/* $id$ */
+$dest = dirname(realpath(__FILE__)) . 'bug27582.png';
+@unlink($dest);
+$im = ImageCreateTrueColor(10, 10);
+imagealphablending($im, true);
+imagesavealpha($im, false);
+$bordercolor=ImageColorAllocateAlpha($im, 0, 0, 0, 2);
+$color = ImageColorAllocateAlpha($im, 0, 0, 0, 1);
+ImageFillToBorder($im, 5, 5, $bordercolor, $color);
+imagepng($im, $dest);
+echo md5_file($dest) . "\n";
+?>
+--EXPECT--
+08287f8f5d406946009df5f04ca83dc0