--- /dev/null
+--TEST--\r
+Bug #42434 (ImageLine w/ antialias = 1px shorter)\r
+--SKIPIF--\r
+<?php\r
+if (!extension_loaded('gd')) {\r
+ die('skip gd extension not available');\r
+}\r
+?>\r
+--FILE--\r
+<?php\r
+$im = imagecreatetruecolor(10, 2);\r
+imagefilledrectangle($im, 0, 0, 10, 2, 0xFFFFFF);\r
+\r
+imageantialias($im, true);\r
+imageline($im, 0, 0, 10, 0, 0x000000);\r
+\r
+if (imagecolorat($im, 9, 0) == 0x000000) {\r
+ echo 'DONE';\r
+} else {\r
+ echo 'Bugged';\r
+}\r
+\r
+imagedestroy($im);\r
+?>\r
+--EXPECTF--\r
+DONE
\ No newline at end of file