Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Disable E_STRICT error reporting
This change disables the reporting of strict standard errors in PHP 5.4,
in PHP versions prior to 5.4 E_STRICT wasn't part of E_ALL so for
these versions this doesn't cause any change (however E_STRICT is
available in all versions of PHP 5 so this doesn't cause any problems).
See also FS#2427.
  • Loading branch information
michitux committed Jan 15, 2012
1 parent 4725165 commit 4fcd684
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/init.php
Expand Up @@ -30,8 +30,8 @@ function delta_time($start=0) {
define('DOKU_E_LEVEL', E_ALL);
}
if (!defined('DOKU_E_LEVEL')) {
if(defined('E_DEPRECATED')){ // since php 5.3
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
if(defined('E_DEPRECATED')){ // since php 5.3, since php 5.4 E_STRICT is part of E_ALL
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT);
}else{
error_reporting(E_ALL ^ E_NOTICE);
}
Expand Down

0 comments on commit 4fcd684

Please sign in to comment.