bug72512.phpt 437 B

1234567891011121314151617181920
  1. --TEST--
  2. Bug #19366 (gdimagefill() function crashes (fixed in bundled libgd))
  3. --EXTENSIONS--
  4. gd
  5. --SKIPIF--
  6. <?php
  7. if (!GD_BUNDLED && version_compare(GD_VERSION, '2.2.2', '<')) {
  8. die("skip test requires GD 2.2.2 or higher");
  9. }
  10. ?>
  11. --FILE--
  12. <?php
  13. $img = imagecreatetruecolor(100, 100);
  14. imagecolortransparent($img, -1000000);
  15. imagetruecolortopalette($img, TRUE, 3);
  16. imagecolortransparent($img, 9);
  17. echo "OK";
  18. ?>
  19. --EXPECT--
  20. OK