note 69135 rejected from function.set-error-handler by betz

From: Date: Thu, 24 Aug 2006 14:36:13 +0000
Subject: note 69135 rejected from function.set-error-handler by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-116267@lists.php.net to get a copy of this message
Note Submitter: j-a-n at gmx dot de ---- 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.

« previous php.notes (#116267) next »