--TEST-- 
Testing wrong param passing imagefilltoborder() of GD library 
--CREDITS-- 
Ivan Rosolen <contato [at] ivanrosolen [dot] com> 
#testfest PHPSP on 2009-06-30
--SKIPIF-- 
<?php  
if (!extension_loaded("gd")) die("skip GD not present"); 
?> 
--FILE--
<?php
// Create a image 
$image imagecreatetruecolor100100 ); 

// Draw a rectangle
imagefilledrectangle$image00100100imagecolorallocate$image255255255 ) );

// Draw an ellipse to fill with a black border
imageellipse$image50505050imagecolorallocate$image00) );

// Try to fill border
imagefilltoborder$image5050'wrong param'imagecolorallocate$image2550) );

?> 
--EXPECTF--
Warning: imagefilltoborder() expects parameter 4 to be long, %s given in %s on line %d