1--TEST-- 2Bug #77943 (imageantialias($image, false); does not work) 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__ . '/func.inc'; 14 15$width = 400; 16$height = 300; 17$im = imagecreatetruecolor($width, $height); 18$white = imagecolorallocate($im, 255, 255, 255); 19$blue = imagecolorallocate($im, 0, 0, 255); 20 21imageantialias($im, false); 22imagefilledrectangle($im, 0, 0, $width-1, $height-1, $white); 23 24imageline($im, 0, 0, $width, $height, $blue); 25imagesetthickness($im, 3); 26imageline($im, 10, 0, $width, $height-10, $blue); 27 28test_image_equals_file(__DIR__ . '/bug77943.png', $im); 29?> 30--EXPECT-- 31The images are equal. 32