From: andreythinking at gmail dot com Operating system: Linux Mandrake 10.0 Official PHP version: 5.2.4 PHP Bug Type: GD related Bug description: imageRectangle not draw rectangle with 1x1 pixel size
Description: ------------ Php-5.2.4 draw parallelepiped instead square, when recieves coordinats 0,0,0,0 (1x1 pixel). On another sizes this fenomen disappears. * * * Some system features (results of command rpm -qa | grep gd): ifplugd-0.21b-1mdk libgdbm2-1.8.0-24mdk sysklogd-1.4.1-5mdk libgdk_pixbuf2.0_0-2.2.4-9mdk libgdk-pixbuf2-0.22.0-2mdk perl-GTK-GdkPixbuf-0.7009-1mdk gdk-pixbuf-loaders-0.22.0-2mdk perl-GTK-GdkImlib-0.7009-1mdk gdm-2.4.4.7-6mdk libgdkcardimage0-2.4.2-2mdk No strange gd, compiled-in used. Reproduce code: --------------- <?php $img=imageCreate(20,30); $bgcolor=imageColorAllocate($img,255,0,255); $fgcolor=imageColorAllocate($img,0,255,255); imageFill($img,0,0,$bgcolor); imageRectangle($img,0,0,0,0,$fgcolor); header("content-type:image/png"); imagePNG($img); imageColorDeallocate($img,$fgcolor); imageColorDeallocate($img,$bgcolor); imageDestroy($img); ?> Expected result: ---------------- Square 1x1 pixel size. Actual result: -------------- Parallelepiped 1x2 pixels: 2px on Y-axis. 1px on X-axis. -- Edit bug report at http://bugs.php.net/?id=43204&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43204&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43204&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43204&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43204&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43204&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43204&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43204&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43204&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43204&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43204&r=support Expected behavior: http://bugs.php.net/fix.php?id=43204&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43204&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43204&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43204&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43204&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43204&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43204&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43204&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43204&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43204&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43204&r=mysqlcfg