1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 14:01:01 +02:00
Files
archived-php-src/ext/gd/tests/bug60160.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

25 lines
522 B
PHP

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