RE: [PHP] User error handler must not modify error context
| From: | Michael Sims | Date: | Tue, 20 Sep 2005 01:21:39 +0000 |
| Subject: | RE: [PHP] User error handler must not modify error context | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-222715@lists.php.net to get a copy of this message | ||
Noel wrote:
> Error Message:
> Fatal error: User error handler must not modify error context in
> [FILENAME] on line 58
[...]
> 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?
Take a look at bug #25922
http://bugs.php.net/bug.php?id=25922
Looks like this was added to avoid that bug. If your custom error handler
accepts the fifth argument ($errcontext in the manual) then make sure it is
not modifying that variable, or if it is, have it modify a copy of the
variable instead.
I haven't experienced this myself, this is just what I found from poking
around in the PHP source.... HTH