xref: /PHP-8.1/ext/gd/tests/bug51498.phpt (revision c565555f)
1--TEST--
2Bug #51498 (imagefilledellipse does not work for large circles)
3--EXTENSIONS--
4gd
5--SKIPIF--
6<?php
7if (!GD_BUNDLED && version_compare(GD_VERSION, "2.3.0") < 0) {
8    die("skip test requires GD 2.3.0 or higher");
9}
10?>
11--FILE--
12<?php
13$img = imagecreatetruecolor(2200, 2200);
14$white = imagecolorallocate($img, 255, 255, 255);
15imagefilledellipse($img, 1100, 1100, 2200, 2200, $white);
16
17require_once __DIR__ . '/func.inc';
18test_image_equals_file(__DIR__ . '/bug51498_exp.png', $img);
19?>
20--EXPECT--
21The images are equal.
22