1--TEST-- 2Bug #43828 (broken transparency of imagearc for truecolor in blendingmode) 3--EXTENSIONS-- 4gd 5--SKIPIF-- 6<?php 7if (!GD_BUNDLED && version_compare(GD_VERSION, '2.2.2', '<')) { 8 die("skip test requires GD 2.2.2 or higher"); 9} 10if (!(imagetypes() & IMG_PNG)) { 11 die("skip No PNG support"); 12} 13?> 14--FILE-- 15<?php 16 17$im = imagecreatetruecolor(100,100); 18 19$transparent = imagecolorallocatealpha($im, 255, 255, 255, 80); 20imagefilledrectangle($im, 0,0, 99,99, $transparent); 21$color = imagecolorallocatealpha($im, 0, 255, 0, 100); 22imagefilledarc($im, 49, 49, 99,99, 0 , 360, $color, IMG_ARC_PIE); 23 24include_once __DIR__ . '/func.inc'; 25test_image_equals_file(__DIR__ . '/bug43828.png', $im); 26 27imagedestroy($im); 28?> 29--EXPECT-- 30The images are equal. 31