note 48186 added to language.references.whatdo
| From: | x123�tbestofd�shinterd�tnet at osu1 dot php dot net | Date: | Tue, 14 Dec 2004 22:42:26 +0000 |
| Subject: | note 48186 added to language.references.whatdo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-81798@lists.php.net to get a copy of this message | ||
It might be worth to note that a reference can be created to an unexisting variable, the reference
is then "undefined" (NOT isset()) but when the other variable is created, the reference
also gets "isset":
<?= phpversion(),
aa, isset($gg), bb, $a=&$GLOBALS[gg], isset($gg),cc,
isset($a),dd, $gg=ee, isset($gg),ff, isset($a),hh, $a
?>
prints
4.2.0RC2aabbccddee1ff1hhee
As I did not find anything about this "feature" in the doc, maybe better don't rely
on it.
(but where the heck is this "undefined" reference living while it is not set ?)
----
Manual Page -- http://www.php.net/manual/en/language.references.whatdo.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+48186
Delete -- http://master.php.net/manage/user-notes.php?action=delete+48186&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48186&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48186&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48186&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48186&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48186&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+48186&report=yes
Search -- http://master.php.net/manage/user-notes.php