On 9/24/09 10:30 AM, "David Otton" wrote:
> 2009/9/24 Tom Worster :
>
>> but i'd like proceed with default error handling in the branch with the
>> question marks. how can i do that?
>
> An error handler that passes through to the previous error handler:
>
> error_reporting(E_ALL);
>
> funct
- Original Message
> From: Tom Worster
> To: PHP General List
> Sent: Thursday, September 24, 2009 6:42:29 AM
> Subject: [PHP] catch an iconv E_NOTICE
>
> i have this hack that works up to a point...
>
> function my_err_handler($errno, $errstr, $errfi
2009/9/24 Tom Worster :
> but i'd like proceed with default error handling in the branch with the
> question marks. how can i do that?
An error handler that passes through to the previous error handler:
http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
i have this hack that works up to a point...
function my_err_handler($errno, $errstr, $errfile, $errline) {
if ( preg_match('/iconv/', $errstr) ) {
throw new Exception('iconv error');
} else {
// ? how to invoke default error handler ?
}
}
set_error_handler("my_err_hand
4 matches
Mail list logo