Re: Bug in HTML/QuickForm/element.php ?
| From: | David Sanders | Date: | Thu, 06 Sep 2007 13:17:29 +0000 |
| Subject: | Re: Bug in HTML/QuickForm/element.php ? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-27880@lists.php.net to get a copy of this message | ||
Alessandro Pasotti wrote:
I'm not sure if this is a bug or not, in the function listed below, if $value is set to zero, it is rendered as an ' '. I would expect it prints '0' instead.Yes this does look like a bug and the file in CVS still has this type of check... please raise a bug report. -- David Sanders shangxiaofunction getFrozenHtml() { $value = $this->getValue(); return ('' != $value? htmlspecialchars($value): ' ') . $this->_getPersistantData(); } //end func getFrozenHtmlPerhaps it should check for '' !== $value My version is@version Release: 3.2.9Do you think I should file the bug?