note 34980 deleted from reserved.variables by sniper
| From: | sniper@php.net | Date: | Tue, 21 Oct 2003 19:42:37 +0000 |
| Subject: | note 34980 deleted from reserved.variables by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-59059@lists.php.net to get a copy of this message | ||
Note Submitter: mthornton of wei dot cc
----
DO NOT REFERENCE A VARIABLE IN THE $GLOBALS ARRAY
I did $var =& $GLOBALS['var']
I was searching for an hour trying to figure out why all my scripts when haywire until i remembered
I did that. When I did that all the sudden PHP became very strict. It complained that I was calling
functions that were not defined, which didn't matter because the calls were in if statemets and
would have never executed. It was complaining about using [] on variables the have not been
initialized and so much more.