Re: Bug in HTML/QuickForm/element.php ?

From: Date: Thu, 06 Sep 2007 13:34:39 +0000
Subject: Re: Bug in HTML/QuickForm/element.php ?
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27882@lists.php.net to get a copy of this message
Il giovedì 06 settembre 2007, David Sanders ha scritto: > 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. > > > > function getFrozenHtml() > > { > > $value = $this->getValue(); > > return ('' != $value? htmlspecialchars($value): ' ') > > . > > $this->_getPersistantData(); > > } //end func getFrozenHtml > > > > Perhaps it should check for > > '' !== $value > > Do you think I should file the bug? > > Yes this does look like a bug and the file in CVS still has this type of > check... please raise a bug report. Filed: http://pear.php.net/bugs/bug.php?id=11995 -- Alessandro Pasotti itOpen - "Open Solutions for the Net Age" w3: www.itopen.it Linux User# 167502

« previous php.pear.general (#27882) next »