note 69135 added to function.set-error-handler
| From: | j-a-n at gmx dot de | Date: | Thu, 24 Aug 2006 12:00:33 +0000 |
| Subject: | note 69135 added to function.set-error-handler | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-116259@lists.php.net to get a copy of this message | ||
Be carefull with the fifth (optional) argument "Error Context".
This Parameter is an array, which contains an entry to the GLOBALS-Array. in this GLOBALS-Array is
another reference to the GLOBALS-Array, so you get Problems with an loop or recursion.
luckily var_dump detects this, so I can put you an excample:
array(85) {
["GLOBALS"]=>
&array(85) {
["GLOBALS"]=>
*RECURSION*
["_ENV"]=>
array(30) {
["ALLUSERSPROFILE"]=>
string(40) "C:\Dokumente und Einstellungen\All Users"
["APPDATA"]=>
string(50) "C:\Dokumente und Einstellungen\jan\Anwendungsdaten"
["CLIENTNAME"]=>
string(7) "Console"
......
}
}
["_ENV"]=>
array(30) {
["ALLUSERSPROFILE"]=>
string(40) "C:\Dokumente und Einstellungen\All Users"
["APPDATA"]=>
string(50) "C:\Dokumente und Einstellungen\jan\Anwendungsdaten"
["CLIENTNAME"]=>
string(7) "Console"
....
}
}
it takes me half a day, to find the reason, why my recursive calling function
"arrayToHtmlTable" doesn't work.
var_export doesn't work too:
array (
'GLOBALS' =>
array (
'GLOBALS' =>
array (
'GLOBALS' =>
array (
<br />
<b>Fatal error</b>: Nesting level too deep - recursive dependency?
only var_dump and print_r are doing right.
is still haven't found an other solution than not to use this parameter.
----
Server IP: 66.163.161.117
Probable Submitter: 84.172.248.193
----
X-Spam-Status: No, hits=3.3 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER,
HTML_MESSAGE autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.set-error-handler.php
Edit -- https://master.php.net/note/edit/69135
Del: integrated -- https://master.php.net/note/delete/69135/integrated
Del: useless -- https://master.php.net/note/delete/69135/useless
Del: bad code -- https://master.php.net/note/delete/69135/bad+code
Del: spam -- https://master.php.net/note/delete/69135/spam
Del: non-english -- https://master.php.net/note/delete/69135/non-english
Del: in docs -- https://master.php.net/note/delete/69135/in+docs
Del: other reasons-- https://master.php.net/note/delete/69135
Reject -- https://master.php.net/note/reject/69135
Search -- https://master.php.net/manage/user-notes.php