note 109527 rejected from reserved.variables.phperrormsg by aharvey

From: Date: Fri, 27 Jul 2012 03:28:56 +0000
Subject: note 109527 rejected from reserved.variables.phperrormsg by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-189415@lists.php.net to get a copy of this message
Note Submitter: Volker dot jahns at rentokil-initial dot com ---- Hi all. .... function Connect($DB) { $Conn['ID'] = ""; $Conn['STAT'] = false; $Conn['ID'] = @mysql_connect($this->Server, "xyz", "123"); $this->IntError = $php_errormsg; ... } produces the message: [26-Jul-2012 15:12:16] PHP Notice: Undefined variable: php_errormsg in .\somewehre\phpMySQLLib.php on line xyz with PHP 5.2.17 Is it a bug or can I set somewhere in the php.ini file a flag, what PHP should not handle the usage of a Var without a former defintion like: $var = "value"; ? Because I have a lot of messages like this "Undefined variable: ..." Thx Volker

« previous php.notes (#189415) next »