RE: [PHP-DEV] PHP 4.0 Bug #8139 Updated: NULL and isset

From: Date: Thu, 07 Dec 2000 11:05:03 +0000
Subject: RE: [PHP-DEV] PHP 4.0 Bug #8139 Updated: NULL and isset
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-40356@lists.php.net to get a copy of this message
> On Thu, 7 Dec 2000, Richard Heyes wrote the following to Sam Liddicott : > > > After being passed by reference and unused (Admittedly a rather strange > > situation) the variable is of type NULL. This would suggest > that it's set > > What?!? This is not true. Try this: > <?php var_dump($b); ?> > > An unset variable has type NULL. If that's the case then this code should issue a notice about an unset variable when it gets to the print statement: <?php function foo(&$bar){ return true; } foo($bar); print($bar); ?> But it doesn't. (4.0.3pl1/RHL6.2). -- Richard Heyes

« previous php.dev (#40356) next »