From: guth at fiifo dot u-psud dot fr Operating system: Linux PHP version: 5CVS-2005-02-21 (dev) PHP Bug Type: GD related Bug description: P'tits rectangles are broken
Description: ------------ imagerectangle() does not work with small rectangles. With the same code, imagefilledrectangle() works. See the result: http://haricow.org/gd/rectangle.png Reproduce code: --------------- <?php $image = imagecreatetruecolor(10, 10); $white = imagecolorallocate($image, 255, 255, 255); imagerectangle($image, 2, 4, 8, 4, $white); imagecolordeallocate($image, $white); header('Content-Type: image/png'); imagepng($image); ?> Expected result: ---------------- A rectangle. Actual result: -------------- A strange shape. -- Edit bug report at http://bugs.php.net/?id=32042&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32042&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32042&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32042&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32042&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32042&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32042&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32042&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32042&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32042&r=support Expected behavior: http://bugs.php.net/fix.php?id=32042&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32042&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32042&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32042&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32042&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32042&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32042&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32042&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32042&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32042&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32042&r=mysqlcfg