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 #2182

problems displaying "0"

Details

Submitted2004-08-21 13:25 UTC
Frompear dot php dot net at jog dot de
Assignedtoby
StatusClosed
PackageImage_Text
PHP Version4.3.8
Roadmaps(Not assigned)

Comments

[2004-08-21 13:25 UTC] pear dot php dot net at jog dot de

Description:
------------
If you want to display the text "0" the calculation of text width crashes...

Reproduce code:
---------------
1065c1065
< if (empty($this->_text)) {

Empty delivers true if $this->_text is "0".

Expected result:
----------------
---
> if (!isset($this->_text)) {

!isset delivers true only if there is really no text.