Re: wrong implementation of isset()?
| From: | Bjoern Hoehrmann | Date: | Tue, 06 Feb 2001 19:41:34 +0000 |
| Subject: | Re: wrong implementation of isset()? | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-45863@lists.php.net to get a copy of this message | ||
* Andrei Zmievski wrote:
>> <?php
>> $a = NULL;
>> if (isset($a)) { print "ok, du hast recht"; }
>> ?>
>>
>> Shouldn't this script generate some output? IMO $a is set
>> and isset() should return true.
>NULL == not set
Great analysis. What about answering the question? Stanislav Malyshev
said some months ago this is 'strange', see the discussion around bug
6076. Tell us at least, why this actually isn't strange.
--
Björn Höhrmann ^ mailto:bjoern@hoehrmann.de ^ http://www.bjoernsworld.de
am Badedeich 7 ° Telefon: +49(0)4667/981028 ° http://bjoern.hoehrmann.de
25899 Dagebüll # PGP Pub. KeyID: 0xA4357E78 # http://learn.to/quote [!]e
~~ will code for food. ~~