php-src/ext/gd/tests/bug51671.phpt
Christoph M. Becker a375d54785
Migrate skip checks to --EXTENSIONS-- for ext/gd
Cf. PR #6787.

Closes GH-6994.
2021-05-22 15:38:51 +02:00

23 lines
429 B
PHP

--TEST--
Bug #51671 (imagefill does not work correctly for small images)
--EXTENSIONS--
gd
--FILE--
<?php
$w = 1;
$h = 50;
$im = imagecreatetruecolor($w, $h);
$white = imagecolorallocate($im, 255, 255, 255);
imagefill($im, 0, 0, $white);
for ($iy = 0; $iy < $h; $iy++) {
if (($c = imagecolorat($im, 0, $iy)) != $white) {
printf("Failed, (0, $iy) is %X\n", $c);
}
}
echo "OK\n";
?>
--EXPECT--
OK