Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.7.0

Bug #2182 problems displaying "0"
Submitted: 2004-08-21 13:25 UTC
From: pear dot php dot net at jog dot de Assigned: toby
Status: Closed Package: Image_Text
PHP Version: 4.3.8 OS:
Roadmaps: (Not assigned)    
Subscription  


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

Comments

 [2004-09-01 13:10 UTC] toby
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.