1--TEST-- 2libgd #106 (imagerectangle 1x1 draws 1x3) 3--SKIPIF-- 4<?php 5 if (!extension_loaded('gd')) die("skip gd extension not available\n"); 6?> 7--FILE-- 8<?php 9$im = imagecreatetruecolor(10,10); 10imagerectangle($im, 1,1, 1,1, 0xFFFFFF); 11$c1 = imagecolorat($im, 1,1); 12$c2 = imagecolorat($im, 1,2); 13$c3 = imagecolorat($im, 2,1); 14$c4 = imagecolorat($im, 2,2); 15if ($c1 == 0xFFFFFF && $c2 == 0 && $c3 == 0 && $c4 == 0) { 16 echo "Ok"; 17} else { 18 echo "failed"; 19} 20?> 21--EXPECT-- 22Ok 23