1--TEST-- 2Bug #73213 (Integer overflow in imageline() with antialiasing) 3--SKIPIF-- 4<?php 5if (!extension_loaded('gd')) die('skip gd extension not available'); 6?> 7--FILE-- 8<?php 9require_once __DIR__ . DIRECTORY_SEPARATOR . 'func.inc'; 10 11$im = imagecreatetruecolor(32768, 1); 12$black = imagecolorallocate($im, 0, 0, 0); 13imageantialias($im, true); 14 15imageline($im, 0,0, 32767,0, $black); 16 17test_image_equals_file(__DIR__ . DIRECTORY_SEPARATOR . 'bug73213.png', $im); 18?> 19--EXPECT-- 20The images are equal. 21