1--TEST--
2Testing passing negative end angle to imagefilledarc() of GD library
3--CREDITS--
4Edgar Ferreira da Silva <contato [at] edgarfs [dot] com [dot] br>
5#testfest PHPSP on 2009-06-20
6--SKIPIF--
7<?php
8if (!extension_loaded("gd")) die("skip GD not present");
9?>
10--FILE--
11<?php
12
13$image = imagecreatetruecolor(100, 100);
14
15$white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
16
17//create an arc and fill it with white color
18imagefilledarc($image, 50, 50, 30, 30, 0, -25, $white, IMG_ARC_PIE);
19
20ob_start();
21imagepng($image);
22$img = ob_get_contents();
23ob_end_clean();
24
25echo md5(base64_encode($img));
26?>
27--EXPECT--
28b77bbb8207e5adbebfcc8bd1c4074305
29