Re: Re: PHP 4.0 Bug #6076 Updated: NULL is isset in function arguments

From: Date: Thu, 10 Aug 2000 09:49:43 +0000
Subject: Re: Re: PHP 4.0 Bug #6076 Updated: NULL is isset in function arguments
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-28405@lists.php.net to get a copy of this message
BH>> $a = NULL; BH>> if (isset($a)) print "value NULL, isset"; This one looks strange indeed, the rest are OK. BH>> An unset variable is equal to NULL. That's OK. BH>> An unset variable is 'not set' Sure. BH>> A variable set to NULL is 'not set', too Here I need to look further. BH>> A variable set to NULL as an argument to a function is 'set'. Default value doesn't look on argument being set or not, it looks on argument being given or not. That's syntax thing. -- Stanislav Malyshev stas@zend.com +972-3-6139665 ext.106

« previous php.dev (#28405) next »