PEAR is archived and read-only

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

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>