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';
[EMAIL PROTECTED]($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

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to