store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Sun May 19, 2013 10:09 am

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 5 posts ] 
Author Message
 Post subject: Best PHP error reporting option?
Unread postPosted: Fri Jun 15, 2012 7:59 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Thu Dec 09, 2004 11:19 am
Posts: 1843
Hi guys,

I can't seem to get the combination I want for php error reporting in php.ini
Can someone guide me please?

At the moment, I'm using
Code:
error_reporting = E_ALL & ~E_DEPRECATED


..but that doesn't do what I want - I'm still getting

Code:
Undefined variable: blah in .....blah....


As far as I can tell, these come under E_NOTICE but I WANT these notices about non-fatal errors in general - I just don't want to know about undefined variables which 99% of scripts seem to have, even today, and which fill up the logs to the brim in some cases.

Is there a way around this? What do other people use for error_reporting?

_________________
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>


Top
 Profile  
 
 Post subject: Re: Best PHP error reporting option?
Unread postPosted: Fri Jun 15, 2012 8:43 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
I don't think there is a way to only log some E_NOTICE messages. For each log level it's either all of nothing.

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
 Post subject: Re: Best PHP error reporting option?
Unread postPosted: Fri Jun 15, 2012 5:15 pm 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Thu Dec 09, 2004 11:19 am
Posts: 1843
Bah :-(

As one of our resident experts on everything, what error_reporting do you use on your systems Breun?

_________________
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>


Top
 Profile  
 
 Post subject: Re: Best PHP error reporting option?
Unread postPosted: Fri Jun 15, 2012 6:31 pm 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
I'd recommend error_reporting = E_ALL & ~E_DEPRECATED & ~E_NOTICE if you want to keep the size of the logs down in a shared hosting environment.

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
 Post subject: Re: Best PHP error reporting option?
Unread postPosted: Sat Jun 16, 2012 12:35 pm 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Thu Dec 09, 2004 11:19 am
Posts: 1843
Thanks Breun.

_________________
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 5 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group