You are here: Re: [PHP] How to ignore E_STRICT and E_NOTICE with error_handler callback « PHP « IT news, forums, messages
Re: [PHP] How to ignore E_STRICT and E_NOTICE with error_handler callback

Posted by Marek Kilimajer on 04/18/05 16:31

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:
>
>> php@electroteque.org 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 these and still no luck,
>>> any ideas ?
>>
>>
>> put this at the top of the error handling function:
>>
>> if($errno == E_STRICT || $errno == E_NOTICE) return;
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация