xref: /PHP-8.1/ext/gd/tests/bug72512.phpt (revision a375d547)
1--TEST--
2Bug #19366 (gdimagefill() function crashes (fixed in bundled libgd))
3--EXTENSIONS--
4gd
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);
14imagecolortransparent($img, -1000000);
15imagetruecolortopalette($img, TRUE, 3);
16imagecolortransparent($img, 9);
17echo "OK";
18?>
19--EXPECT--
20OK
21