xref: /PHP-8.1/ext/gd/tests/bug42434.phpt (revision a375d547)
1--TEST--
2Bug #42434 (ImageLine w/ antialias = 1px shorter)
3--EXTENSIONS--
4gd
5--FILE--
6<?php
7$im = imagecreatetruecolor(10, 2);
8imagefilledrectangle($im, 0, 0, 10, 2, 0xFFFFFF);
9
10imageantialias($im, true);
11imageline($im, 0, 0, 10, 0, 0x000000);
12
13if (imagecolorat($im, 9, 0) == 0x000000) {
14    echo 'DONE';
15} else {
16    echo 'Bugged';
17}
18
19imagedestroy($im);
20?>
21--EXPECT--
22DONE
23