Home » Images » Image_Text » Bug #1816
imagecolorallocatealpha - unknown parameter
Details
| Submitted | 2004-07-07 19:35 UTC |
|---|---|
| From | schuster at TSinter dot net |
| Assigned | toby |
| Status | Closed |
| Package | Image_Text |
| PHP Version | 4.3.7 |
| OS | Linux |
| 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>