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