|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22246 error notice "undefined variable"
Submitted: 2003-02-17 04:09 UTC Modified: 2003-02-17 04:13 UTC
From: essexdog at canada dot com Assigned:
Status: Not a bug Package: Variables related
PHP Version: 4.2.3 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: essexdog at canada dot com
New email:
PHP Version: OS:


 [2003-02-17 04:09 UTC] essexdog at canada dot com
echo $var

url = http://localhost/test.php?var=test

undefined variable

sapi: IIS 5.0

I try to run on Mandrake linux with  php4.2.3 + Apache 1.3.26, error not occurred. but work normally (print the value "test").



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-17 04:13 UTC]
In PHP 4.2.0, the 'register_globals' setting default changed to
'off'. See for more info.
We are sorry about the inconvenience, but this change was a necessary
part of our efforts to make PHP scripting more secure and portable.

You should use $var = $_GET[\'var\']; in the top of your script.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Dec 09 09:01:27 2023 UTC