1--TEST--
2Testing imagecolorallocatealpha()
3--CREDITS--
4Rafael Dohms <rdohms [at] gmail [dot] com>
5--SKIPIF--
6<?php
7	if (!extension_loaded("gd")) die("skip GD not present");
8	if (!GD_BUNDLED && version_compare(GD_VERSION, '2.2.2', '<')) {
9		die("skip test requires GD 2.2.2 or higher");
10	}
11?>
12--FILE--
13<?php
14$img = imagecreatetruecolor(150, 150);
15
16$cor = imagecolorallocate($img, 50, 100, 255);
17$corA = imagecolorallocatealpha($img, 50, 100, 255, 50);
18//$whiteA = imagecolorallocatealpha($img, 255, 255, 255, 127);
19
20$half =  imagefilledarc ( $img, 75, 75, 70, 70, 0, 180, $cor, IMG_ARC_PIE );
21$half2 =  imagefilledarc ( $img, 75, 75, 70, 70, 180, 360, $corA, IMG_ARC_PIE );
22
23include_once __DIR__ . '/func.inc';
24test_image_equals_file(__DIR__ . '/imagecolorallocatealpha_basic.png', $img);
25var_dump($corA);
26?>
27--EXPECT--
28The images are equal.
29int(842163455)
30