User error handler must not modify error context

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Error Message:
Fatal error: User error handler must not modify error context in [FILENAME] on line 58

This error seems to occur only when I use:
$old_error_handler = set_error_handler ('userErrorHandler');

The error number is pointing to this code:
LINE 57: global $mywebsite;
LINE 58: if ($_POST['title']) $title = $_POST['title'];
LINE 59: elseif ($_GET['title']) $title = $_GET['title'];

It's surprising how no one seem to have had this problem before. I've googled it already and all I've come up with are the zend source codes. I've also search the PHP mailing lists, several message boards, etc. Nothing.

One code I've seen gave me a clue that it might have only occurred since I'm using PHP 4.4.

My site has just been upgraded to this version. In the previous version (4.3.11), my site works just fine. Could this be a bug? If it is, how can I solve it at least until they've released a fixed for it?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux