#22663 [Opn->Bgs]: Variable $ID contains 3 initially
| From: | sniper@php.net | Date: | Wed, 12 Mar 2003 23:04:48 +0000 |
| Subject: | #22663 [Opn->Bgs]: Variable $ID contains 3 initially | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-35464@lists.php.net to get a copy of this message | ||
ID: 22663
Updated by: sniper@php.net
Reported By: public at hverdag dot dk
-Status: Open
+Status: Bogus
Bug Type: Variables related
Operating System: Windows 2000
PHP Version: 4.3.1
New Comment:
Set register_globals=Off and this problem goes away.
(it's coming from cookie)
Previous Comments:
------------------------------------------------------------------------
[2003-03-12 14:26:11] public at hverdag dot dk
CORRECTION: I was NOT using $ID as a session variable though. But if I
do it gives strange and totally off error messages about different
places in my script where the script is perfectly correct.
------------------------------------------------------------------------
[2003-03-12 13:09:01] public at hverdag dot dk
Why on earth does the variable $ID contain the value 3 on a totally
blank page where neither other script has been processed or session
started???!
This is not so big a problem in itself, but if I use $ID as a session
variable it even overwrites this value - now, THIS is a problem!
I cannot find any place where it says that one shouldn't use this
variable name.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22663&edit=1