xref: /PHP-8.1/ext/gd/tests/bug39508.phpt (revision a375d547)
1--TEST--
2Bug #39508 (imagefill crashes with small images 3 pixels or less)
3--EXTENSIONS--
4gd
5--FILE--
6<?php
7$im = imagecreatetruecolor(3,1);
8$bgcolor = imagecolorallocatealpha($im,255, 255, 0, 0);
9imagefill($im,0,0,$bgcolor);
10print_r(imagecolorat($im, 1,0));
11?>
12--EXPECT--
1316776960
14