Re: Cache_Lite patch
| From: | Jon Parise | Date: | Tue, 14 Jan 2003 15:26:37 +0000 |
| Subject: | Re: Cache_Lite patch | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-12413@lists.php.net to get a copy of this message | ||
On Tue, Jan 14, 2003 at 04:15:07PM +0100, Pierre-Alain Joye wrote:
> > > - if (($data) and ($this->_memoryCaching)) {
> > > + if (isset($data) && $data && ($this->_memoryCaching))
> > > {
> >
> > if (!empty($data) && $this->_memoryCaching) {
>
> empty($nonsetvariable); raises a waring or a notice.
No, it doesn't (at least, on my machine):
error_reporting(E_ALL);
if (empty($foo)) {
echo 'empty';
}
'empty' is printed when this code is executed.
--
Jon Parise (jon@php.net) :: The PHP Project (http://www.php.net/)