Annotation of embedaddon/php/ext/gd/tests/imagefill_1.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: imagefill() infinite loop with wrong color index
! 3: --SKIPIF--
! 4: <?php
! 5: if (!extension_loaded('gd')) {
! 6: die("skip gd extension not available.");
! 7: }
! 8: if (!function_exists("imagefttext")) {
! 9: die("skip imagefttext() not available.");
! 10: }
! 11: ?>
! 12: --FILE--
! 13: <?php
! 14: $im = imagecreate(100,100);
! 15: $white = imagecolorallocate($im, 255,255,255);
! 16: $blue = imagecolorallocate($im, 0,0,255);
! 17: $green = imagecolorallocate($im, 0,255,0);
! 18:
! 19: print_r(imagecolorat($im, 0,0));
! 20: imagefill($im, 0,0,$white + 3);
! 21: print_r(imagecolorat($im, 0,0));
! 22: imagedestroy($im);
! 23: ?>
! 24: --EXPECT--
! 25: 00
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>