PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Images » Image_Canvas » Bug #5325

Image/Color.php compatibility with old PHP versions

Details

Submitted2005-09-07 19:46 UTC
Fromgjepperson at bankaf dot com
Assignednosey
StatusClosed
PackageImage_Canvas
PHP Version4.2.2
OSirrelevant
Roadmaps(Not assigned)

Comments

[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!

[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...