File: 
 
[ELWIX - Embedded LightWeight unIX -] / 
embedaddon / 
php / 
ext / 
gd / 
tests / 
bug60160.phpt
 Revision 
1.1.1.1 (vendor branch): 
download - view: 
text, 
annotated - 
select for diffs - 
revision graph
Tue Feb 21 23:47:56 2012 UTC (13 years, 8 months ago) by 
misho
Branches: 
php,
MAIN
CVS tags: 
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
--TEST--
Bug #60160 (imagefill does not work correctly for small images) @see bug51671
--SKIPIF--
<?php
	if(!extension_loaded('gd')){ die('skip gd extension not available'); }
?>
--FILE--
<?php
$w = 3;
$h = 50;
$im = imagecreatetruecolor($w, $h);
$white = imagecolorallocate($im, 255, 255, 255);
imagefill($im, 0, 0, $white);
for ($ix = 0; $ix < $w; $ix++) {
        for ($iy = 0; $iy < $h; $iy++) {
                if (($c = imagecolorat($im, $ix, $iy)) != $white) {
                        printf("Failed, ($ix, $iy) is %X\n", $c);
                }
        }
}
echo "OK\n";
?>
--EXPECTF--
OK
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>