xref: /PHP-5.4/ext/gd/tests/imagefill_1.phpt (revision cee0a7df)
1--TEST--
2imagefill() infinite loop with wrong color index
3--SKIPIF--
4<?php
5	if (!extension_loaded('gd')) {
6		die("skip gd extension not available.");
7	}
8	if (!function_exists("imagefttext")) {
9		die("skip imagefttext() not available.");
10	}
11?>
12--FILE--
13<?php
14$im = imagecreate(100,100);
15$white = imagecolorallocate($im, 255,255,255);
16$blue = imagecolorallocate($im, 0,0,255);
17$green = imagecolorallocate($im, 0,255,0);
18
19print_r(imagecolorat($im, 0,0));
20imagefill($im, 0,0,$white + 3);
21print_r(imagecolorat($im, 0,0));
22imagedestroy($im);
23?>
24--EXPECT--
2500
26