From: simslim at gmail dot com Operating system: Win XP PHP version: 5.2.5 PHP Bug Type: GD related Bug description: Imagefill(), x and y do not work
Description: ------------ I use imagefill to fill a picture, but no matter what I enter as start x and y, it always fills the whole image (with x and y higher then 0 and not higher then image sizes) Reproduce code: --------------- header("Content-Type: image/png"); $img = imagecreatetruecolor(100,100); $red = imagecolorallocate($img,255,0,0); $green = imagecolorallocate($img,0,255,0); imagefill($img,0,0,$red); imagefill($img,50,0,$green); imagepng($img); Expected result: ---------------- A picture, 100 x 100, with the left half red and the right half green Actual result: -------------- A picture, 100 x 100, completely green -- Edit bug report at http://bugs.php.net/?id=44847&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44847&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44847&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44847&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44847&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44847&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44847&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44847&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44847&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44847&r=support Expected behavior: http://bugs.php.net/fix.php?id=44847&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44847&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44847&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44847&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44847&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44847&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44847&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44847&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44847&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44847&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44847&r=mysqlcfg