note 109527 added to reserved.variables.phperrormsg
| From: | Volker dot jahns at rentokil-initial dot com | Date: | Thu, 26 Jul 2012 13:39:58 +0000 |
| Subject: | note 109527 added to reserved.variables.phperrormsg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-189405@lists.php.net to get a copy of this message | ||
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
----
Server IP: 69.147.83.197
Probable Submitter: 85.115.52.180
----
Manual Page -- http://www.php.net/manual/en/reserved.variables.phperrormsg.php
Edit -- https://master.php.net/note/edit/109527
Del: integrated -- https://master.php.net/note/delete/109527/integrated
Del: useless -- https://master.php.net/note/delete/109527/useless
Del: bad code -- https://master.php.net/note/delete/109527/bad+code
Del: spam -- https://master.php.net/note/delete/109527/spam
Del: non-english -- https://master.php.net/note/delete/109527/non-english
Del: in docs -- https://master.php.net/note/delete/109527/in+docs
Del: other reasons-- https://master.php.net/note/delete/109527
Reject -- https://master.php.net/note/reject/109527
Search -- https://master.php.net/manage/user-notes.php