|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15735 Undefined variable
Submitted: 2002-02-26 12:40 UTC Modified: 2002-02-26 15:08 UTC
From: php at hodek dot de Assigned:
Status: Not a bug Package: Variables related
PHP Version: 4.1.1 OS: Windows XP Professional
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: php at hodek dot de
New email:
PHP Version: OS:


 [2002-02-26 12:40 UTC] php at hodek dot de
On Windows XP Professional there is a "Undefined Variable" error even if you define the variable before the script runs.

Windows XP Professional build 2600


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-26 12:48 UTC]
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

 [2002-02-26 13:13 UTC]
"define a variable before the script runs"
-> how is that done? ;)
 [2002-02-26 15:08 UTC]
Here's a good test script for this.  Note that a 'undefined variable' is an error of level E_NOTICE, showing these errors depends on the error_reporting directive.

error_reporting(E_ALL); // turn our error_reporting up
print $undefined;       // error (notice)
$defined = 1;
print $defined;         // no error (it's set)
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 04:01:28 2024 UTC