Annotation of embedaddon/php/ext/gd/tests/bug39508.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #39508 (imagefill crashes with small images 3 pixels or less)
! 3: --SKIPIF--
! 4: <?php
! 5: if (!extension_loaded('gd')) die("skip gd extension not available\n");
! 6: ?>
! 7: --FILE--
! 8: <?php
! 9: $im = imagecreatetruecolor(3,1);
! 10: $bgcolor = imagecolorallocatealpha($im,255, 255, 0, 0);
! 11: imagefill($im,0,0,$bgcolor);
! 12: print_r(imagecolorat($im, 1,0));
! 13: ?>
! 14: --EXPECTF--
! 15: 16776960
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>