FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Never log deprecation warnings
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Never log deprecation warnings [message #179035 is a reply to message #179031] Thu, 06 September 2012 13:48 Go to previous messageGo to previous message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma:
Senior Member
Jonathan Stein wrote:

> Does anyone have an idea about how to never log deprecation warnings -
> even if the code alters error_reporting?
>
> I'm thinking about setting "php_flag log_errors off" in .htaccess to
> block all error logging, but I would prefer to log real errors.

You could set `error_reporting' to something that includes `& ~DEPRECATED'
(and code that alters error-reporting in more than one place, except for
debugging purposes, is potentially bad code anyway), but …

> (And no, avoiding deprecated functions is not an option in this case).

… I strongly suggest you fix the code instead. Why is that IYHO not an
option in this case?

If you do not fix deprecated code now, it will be a real error in one of the
next PHP versions. Upgrading PHP to that version will cause your
application to break. Not upgrading to it will cause your application to be
inherently insecure as you would not get all the security fixes. You do not
want any of that to happen.


PointedEars
--
Danny Goodman's books are out of date and teach practices that are
positively harmful for cross-browser scripting.
-- Richard Cornford, cljs, <cife6q$253$1$8300dec7(at)news(dot)demon(dot)co(dot)uk> (2004)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: how format one date
Next Topic: Problem with PHP Driver Authentication
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 16:36:42 GMT 2024

Total time taken to generate the page: 0.05780 seconds