1--TEST-- 2Bug #60160 (imagefill does not work correctly for small images) @see bug51671 3--EXTENSIONS-- 4gd 5--FILE-- 6<?php 7$w = 3; 8$h = 50; 9$im = imagecreatetruecolor($w, $h); 10$white = imagecolorallocate($im, 255, 255, 255); 11imagefill($im, 0, 0, $white); 12 13for ($ix = 0; $ix < $w; $ix++) { 14 for ($iy = 0; $iy < $h; $iy++) { 15 if (($c = imagecolorat($im, $ix, $iy)) != $white) { 16 printf("Failed, ($ix, $iy) is %X\n", $c); 17 } 18 } 19} 20 21echo "OK\n"; 22?> 23--EXPECT-- 24OK 25