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