Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.5.0

Bug #5325 Image/Color.php compatibility with old PHP versions
Submitted: 2005-09-07 19:46 UTC
From: gjepperson at bankaf dot com Assigned: nosey
Status: Closed Package: Image_Canvas
PHP Version: 4.2.2 OS: irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2005-09-07 19:46 UTC] gjepperson at bankaf dot com
Description: ------------ In Image/Color.php line 64 in function allocateColor, you have a function call to imagecolorallocatealpha which doesn't exist in PHP 4.2.2. It would be nice if you checked if the function exists first and handle the error gracefully. Thanks!

Comments

 [2005-09-11 05:17 UTC] drewish at php dot net
Hey are you sure this is an Image_Color bug? We don't call imagecolorallocatealpha(). I think that this might be an Image_Canvas bug. Their Image_Canvas_Color class extends Image_Color and makes a call to imagecolorallocatealpha() though it's on line 67. If you still think this is an Image_Color bug, it would be helpful to have a backtrace to see what's going on behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php
 [2005-09-14 00:13 UTC] drewish at php dot net
I'm passing this one to you guys...
 [2005-09-14 17:26 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!