Home » Images » Image_Text » Bug #2182
problems displaying "0"
Details
| 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 |
| 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.