xref: /PHP-5.4/ext/gd/tests/bug42434.phpt (revision 2c3b1fd9)
1--TEST--
2Bug #42434 (ImageLine w/ antialias = 1px shorter)
3--SKIPIF--
4<?php
5if (!extension_loaded('gd')) {
6	die('skip gd extension not available');
7}
8if (!GD_BUNDLED) die("skip requires bundled GD library\n");
9?>
10--FILE--
11<?php
12$im = imagecreatetruecolor(10, 2);
13imagefilledrectangle($im, 0, 0, 10, 2, 0xFFFFFF);
14
15imageantialias($im, true);
16imageline($im, 0, 0, 10, 0, 0x000000);
17
18if (imagecolorat($im, 9, 0) == 0x000000) {
19	echo 'DONE';
20} else {
21	echo 'Bugged';
22}
23
24imagedestroy($im);
25?>
26--EXPECTF--
27DONE