Permalink
Browse files

Update error_reporting configuration for newer version of PHP. Fixes …

…#8701 for 2.7.x props jacobsantos

git-svn-id: http://svn.automattic.com/wordpress/branches/2.7@10406 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent 7874a85 commit 46178887a809647fe94e2b9ddf70990ea7d9e624 westi committed Jan 22, 2009
Showing with 6 additions and 1 deletion.
  1. +6 −1 wp-settings.php
View
7 wp-settings.php
@@ -201,7 +201,12 @@ function timer_stop($display = 0, $precision = 3) { //if called like timer_stop(
if (defined('WP_DEBUG') and WP_DEBUG == true) {
error_reporting(E_ALL);
} else {
- error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE);
+ if ( defined( 'E_DEPRECATED' ) )
+ error_reporting(E_ALL ^ E_STRICT ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE);
+ else if ( defined( 'E_STRICT' ) )
+ error_reporting(E_ALL ^ E_STRICT ^ E_NOTICE ^ E_USER_NOTICE);
+ else
+ error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE);
}
// For an advanced caching plugin to use, static because you would only want one

0 comments on commit 4617888

Please sign in to comment.