[wp-trac] Re: [WordPress Trac] #8701: WordPress throws E_DEPRECATED notices all over the place with newer PHP 5 installs

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 23 21:59:39 GMT 2009


#8701: WordPress throws E_DEPRECATED notices all over the place with newer PHP 5
installs
-------------------------------------+--------------------------------------
 Reporter:  Otto42                   |        Owner:  anonymous
     Type:  defect (bug)             |       Status:  reopened 
 Priority:  high                     |    Milestone:  2.7.1    
Component:  General                  |      Version:  2.7      
 Severity:  blocker                  |   Resolution:           
 Keywords:  has-patch tested commit  |  
-------------------------------------+--------------------------------------
Comment (by jacobsantos):

 Okay, basically this works on PHP 5.2.x and PHP 5.3:

 {{{
 error_reporting( E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_WARNING);
 }}}

 This works on PHP 6.0

 {{{
 error_reporting( E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_WARNING ^ E_STRICT);
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8701#comment:36>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list