From 3e4d81f29e184a052de53fa5ccae32ffb48dfa7c Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Fri, 23 Jan 2009 17:55:16 +0000 Subject: [PATCH] Sort out the error_reporting for PHP 5.3. See #8701. git-svn-id: https://develop.svn.wordpress.org/trunk@10420 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-settings.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-settings.php b/wp-settings.php index db22b5854e..f9d694f6ee 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -201,9 +201,9 @@ timer_start(); if (defined('WP_DEBUG') and WP_DEBUG == true) { error_reporting(E_ALL); } else { - if ( defined( 'E_DEPRECATED' ) ) - error_reporting(E_ALL ^ E_STRICT ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE); - else if ( defined( 'E_STRICT' ) ) + if ( defined( 'E_DEPRECATED' ) ) // Introduced in PHP 5.3 + error_reporting( (E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE) & E_STRICT); + else if ( defined( 'E_STRICT' ) ) // Introduced in PHP 5.0 not part of E_ALL error_reporting( ( E_ALL ^ E_NOTICE ^ E_USER_NOTICE ) & E_STRICT); else error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE);