[wp-trac] Re: [WordPress Trac] #9639: Error Reporting for Wp-load.php overrides E_DEPRECATED too late

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 24 23:10:43 GMT 2009


#9639: Error Reporting for Wp-load.php overrides E_DEPRECATED too late
------------------------------+---------------------------------------------
 Reporter:  jacobsantos       |       Owner:                  
     Type:  enhancement       |      Status:  new             
 Priority:  low               |   Milestone:  2.8             
Component:  Warnings/Notices  |     Version:  2.7             
 Severity:  minor             |    Keywords:  has-patch tested
------------------------------+---------------------------------------------

Comment(by azaozz):

 Yes, it's similar to #8701. However do we need all of these on a
 production install:

 {{{
 1       E_ERROR
 2       E_WARNING
 4       E_PARSE
 16      E_CORE_ERROR
 32      E_CORE_WARNING
 64      E_COMPILE_ERROR
 128     E_COMPILE_WARNING
 256     E_USER_ERROR
 512     E_USER_WARNING
 }}}

 Or perhaps we can stick to basic error reporting only:

 {{{
 error_reporting(E_ERROR | E_WARNING | E_PARSE);
 }}}

 Also if we need the long list, why are we '''"Xor"''' `^ E_STRICT` when we
 should be tuning it off '''"And Not"''' `& ~E_STRICT`
 [https://core.trac.wordpress.org/ticket/8701#comment:49 as proposed by
 westi]. That makes the test for PHP 6.x redundant.

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


More information about the wp-trac mailing list