Hi,
Is there a way to get the current error handler name? I'm writing a library so I have to fetch this dynamically or I would need to take an additional parameter, which I want to avoid...
get_error_handler_name() ?
Moderator: General Moderators
- kaisellgren
- DevNet Resident
- Posts: 1675
- Joined: Sat Jan 07, 2006 5:52 am
- Location: Lahti, Finland.
-
Mark Baker
- Forum Regular
- Posts: 710
- Joined: Thu Oct 30, 2008 6:24 pm
Re: get_error_handler_name() ?
kaisellgren wrote:Is there a way to get the current error handler name? I'm writing a library so I have to fetch this dynamically or I would need to take an additional parameter, which I want to avoid...
Code: Select all
function userErrorHandler($errno, $errmsg, $filename, $linenum, $vars)
{
return false;
}
$old_error_handler = set_error_handler("userErrorHandler");
set_error_handler($old_error_handler);
echo $old_error_handler;
- kaisellgren
- DevNet Resident
- Posts: 1675
- Joined: Sat Jan 07, 2006 5:52 am
- Location: Lahti, Finland.
Re: get_error_handler_name() ?
Oh I didn't notice set_error_handler() returns it
. Thanks.