note 34980 added to reserved.variables

From: Date: Wed, 13 Aug 2003 22:35:39 +0000
Subject: note 34980 added to reserved.variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-54116@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/reserved.variables.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34980 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34980&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34980&report=yes

« previous php.notes (#54116) next »