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
This commit is contained in:
parent
e568aac7fa
commit
3e4d81f29e
|
@ -201,9 +201,9 @@ timer_start();
|
||||||
if (defined('WP_DEBUG') and WP_DEBUG == true) {
|
if (defined('WP_DEBUG') and WP_DEBUG == true) {
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
} else {
|
} else {
|
||||||
if ( defined( 'E_DEPRECATED' ) )
|
if ( defined( 'E_DEPRECATED' ) ) // Introduced in PHP 5.3
|
||||||
error_reporting(E_ALL ^ E_STRICT ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE);
|
error_reporting( (E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE) & E_STRICT);
|
||||||
else if ( defined( '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);
|
error_reporting( ( E_ALL ^ E_NOTICE ^ E_USER_NOTICE ) & E_STRICT);
|
||||||
else
|
else
|
||||||
error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE);
|
error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE);
|
||||||
|
|
Loading…
Reference in New Issue