xref: /PHP-5.5/ext/gd/tests/bug72512.phpt (revision 928aecc0)
1--TEST--
2Bug #19366 (gdimagefill() function crashes (fixed in bundled libgd))
3--SKIPIF--
4<?php
5	if (!extension_loaded('gd')) die("skip gd extension not available\n");
6?>
7--FILE--
8<?php
9$img = imagecreatetruecolor(100, 100);
10imagecolortransparent($img, -1000000);
11imagetruecolortopalette($img, TRUE, 3);
12imagecolortransparent($img, 9);
13echo "OK";
14?>
15--EXPECT--
16OK
17
18