xref: /PHP-7.0/ext/gd/tests/bug39508.phpt (revision 70650810)
1--TEST--
2Bug #39508 (imagefill crashes with small images 3 pixels or less)
3--SKIPIF--
4<?php
5	if (!extension_loaded('gd')) die("skip gd extension not available\n");
6?>
7--FILE--
8<?php
9$im = imagecreatetruecolor(3,1);
10$bgcolor = imagecolorallocatealpha($im,255, 255, 0, 0);
11imagefill($im,0,0,$bgcolor);
12print_r(imagecolorat($im, 1,0));
13?>
14--EXPECTF--
1516776960
16