Re: [PHP] How to ignore E_STRICT and E_NOTICE with error_handler callback

2005-04-18 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: Hi there i have an error handler callback within an error class which is also being used for pear errors. E_NOTICE and E_STRICT are still triggering this callback method, so i have to make a check that the code is not one of these. I have error_reporting to ignore both of

Re: [PHP] How to ignore E_STRICT and E_NOTICE with error_handler callback

2005-04-18 Thread Dan Rossi
already have i was hoping to avoid the if's. E_STRICT was throwing a heap of suggestions for pear packages code ;) On 18/04/2005, at 6:44 PM, Marek Kilimajer wrote: [EMAIL PROTECTED] wrote: Hi there i have an error handler callback within an error class which is also being used for pear errors.

Re: [PHP] How to ignore E_STRICT and E_NOTICE with error_handler callback

2005-04-18 Thread Matthew Weier O'Phinney
* Dan Rossi [EMAIL PROTECTED]: already have i was hoping to avoid the if's. E_STRICT was throwing a heap of suggestions for pear packages code ;) So turn off error reporting for those levels: error_reporting(E_ALL ~E_STRICT ~E_NOTICE); On 18/04/2005, at 6:44 PM, Marek Kilimajer

Re: [PHP] How to ignore E_STRICT and E_NOTICE with error_handler callback

2005-04-18 Thread Marek Kilimajer
Dan Rossi wrote: already have i was hoping to avoid the if's. E_STRICT was throwing a heap of suggestions for pear packages code ;) That means you are using PHP5, so you can use second argument to set_error_handler() On 18/04/2005, at 6:44 PM, Marek Kilimajer wrote: [EMAIL PROTECTED] wrote: Hi

[PHP] How to ignore E_STRICT and E_NOTICE with error_handler callback

2005-04-17 Thread php
Hi there i have an error handler callback within an error class which is also being used for pear errors. E_NOTICE and E_STRICT are still triggering this callback method, so i have to make a check that the code is not one of these. I have error_reporting to ignore both of these and still no luck,