PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Images » Image_Text » Bug #1816

imagecolorallocatealpha - unknown parameter

Details

Submitted2004-07-07 19:35 UTC
Fromschuster at TSinter dot net
Assignedtoby
StatusClosed
PackageImage_Text
PHP Version4.3.7
OSLinux
Roadmaps(Not assigned)

Comments

[2004-07-07 19:35 UTC] schuster at TSinter dot net

Description:
------------
i think there is an error in Text.php in line 488:
$color['color']['a'] = isset($color[3]) ? $color[3] : 0;

should be:
$color['a'] = isset($color[3]) ? $color[3] : 0;

otherwise imagecolorallocatealpha($this->_img, $color['r'],$color['g'],$color['b'],$color['a']); returns a warning:
Undefined index: a in <b>/devel/web/PEAR/Image/Text.php</b> on line <b>508</b>