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