Re: RE : [PHP-DEV] variable_exists() patch

From: Date: Wed, 20 Aug 2003 20:08:06 +0000
Subject: Re: RE : [PHP-DEV] variable_exists() patch
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-4112@lists.php.net to get a copy of this message
<?php $foo = null; echo $foo; echo $nonexistent; ?> You will get PHP warnings on line 4 that $nonexistent doesn't exist, but NO warnings on line 3 about $foo.
Stop repeating obvious stuff please, everyone on the list knows this.
PHP doesn't treat them the same, so how are we. PHP itself isn't consistent, and why we all asked for variable_exists() to begin with. It helps clear up the inconsistency w/ isset() and PHP's handling of echo $foo; vs. echo $nonexistent.
No, clearing your `inconsitency' would mean making PHP issue a notice whenever you read a null value. I guess we all just have to agree to disagree on the issue, and have PHP stay the way it is unfortunatly.
:( Walt

« previous php.internals (#4112) next »