Re: [PHP] catch an iconv E_NOTICE

2009-09-24 Thread Tom Worster
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

Re: [PHP] catch an iconv E_NOTICE

2009-09-24 Thread Tommy Pham
- 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

Re: [PHP] catch an iconv E_NOTICE

2009-09-24 Thread David Otton
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

[PHP] catch an iconv E_NOTICE

2009-09-24 Thread Tom Worster
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