Bug #15735 Updated: Undefined variable

From: Date: Tue, 26 Feb 2002 20:08:22 +0000
Subject: Bug #15735 Updated: Undefined variable
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-1109@lists.php.net to get a copy of this message
ID: 15735 Updated by: philip@php.net Reported By: php@hodek.de Status: Bogus Bug Type: Variables related Operating System: Windows XP Professional PHP Version: 4.1.1 New Comment: 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) Previous Comments: ------------------------------------------------------------------------ [2002-02-26 13:13:33] hholzgra@php.net "define a variable before the script runs" -> how is that done? ;) ------------------------------------------------------------------------ [2002-02-26 12:48:57] 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 12:40:30] php@hodek.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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15735&edit=1

« previous php.bugs (#1109) next »