From: phpbug at phpandmore dot com Operating system: Windows NT LAPTOP 5.1 build 2600 PHP version: 5.1.2 PHP Bug Type: GD related Bug description: imagecolorallocatealpha returns false
Description: ------------ When I try to allocate a transparent color as the background of an image, eg: the first color allocated, imagecolorallocatealpha returns false. I am using php 5.1.1, and gd bundled 2.0.28 compatable Reproduce code: --------------- $baseImage = imagecreate($_REQUEST['width'], $_REQUEST['height']); if($trans = imagecolorallocatealpha($baseImage, 255, 255, 255, 63)) echo 'good'; else echo 'bad'; Expected result: ---------------- good Actual result: -------------- bad -- Edit bug report at http://bugs.php.net/?id=36050&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36050&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36050&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36050&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36050&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36050&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36050&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36050&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36050&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36050&r=support Expected behavior: http://bugs.php.net/fix.php?id=36050&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36050&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36050&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36050&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36050&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36050&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36050&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36050&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36050&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36050&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36050&r=mysqlcfg