php.net |  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
 [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

Patches

Pull Requests

History

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

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] hholzgra@php.net
"define a variable before the script runs"
-> how is that done? ;)
 [2002-02-26 15:08 UTC] philip@php.net
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: Sun Dec 08 00:01:27 2024 UTC