bug51498.phpt 524 B

123456789101112131415161718192021
  1. --TEST--
  2. Bug #51498 (imagefilledellipse does not work for large circles)
  3. --EXTENSIONS--
  4. gd
  5. --SKIPIF--
  6. <?php
  7. if (!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);
  15. imagefilledellipse($img, 1100, 1100, 2200, 2200, $white);
  16. require_once __DIR__ . '/func.inc';
  17. test_image_equals_file(__DIR__ . '/bug51498_exp.png', $img);
  18. ?>
  19. --EXPECT--
  20. The images are equal.