[wp-trac] [WordPress Trac] #14371: Allow user to specify error reporting level

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 14 08:13:11 UTC 2010


#14371: Allow user to specify error reporting level
------------------------------+---------------------------------------------
 Reporter:  wjm               |       Owner:                 
     Type:  enhancement       |      Status:  new            
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Warnings/Notices  |     Version:  3.0            
 Severity:  normal            |    Keywords:  has-patch      
------------------------------+---------------------------------------------

Comment(by hakre):

 Those who want to configure error reporting only need to set WP_DEBUG to
 'CONFIG' and they are done (this patch applied).

 If you need to track errors that are (still) supressed (some supressions
 are prevented by WP_DEBUG = 'CONFIG' but not all), you need to create your
 own error handler.

 That can be an option as well in case you don't want to deal with the ini
 settings. The error handler can be called all the time regardless wether
 something is not reported as by ini/configuration and/or supression:

 [http://php.net/manual/en/function.set-error-handler.php
 set_error_handler()][[BR]]
 [http://www.php.net/manual/en/function.error-reporting.php
 error_reporting()][[BR]]
 [http://www.php.net/manual/en/errorfunc.configuration.php#ini.display-
 errors display_errors directive]

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14371#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list