Skip to content

Commit

Permalink
Update error_reporting() level.
Browse files Browse the repository at this point in the history
PHP5.4 includes E_STRICT in E_ALL error level,
CakePHP 1.3 isn't fully compatible with E_STRICT.
  • Loading branch information
markstory committed Nov 19, 2011
1 parent 2ac00f0 commit f71f8b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/libs/configure.php
Expand Up @@ -114,7 +114,7 @@ function write($config, $value = null) {
if (!class_exists('Debugger')) {
require LIBS . 'debugger.php';
}
$reporting = E_ALL & ~E_DEPRECATED;
$reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT;
if (function_exists('ini_set')) {
ini_set('display_errors', 1);
}
Expand All @@ -127,7 +127,7 @@ function write($config, $value = null) {
if (is_integer($_this->log) && !$_this->debug) {
$reporting = $_this->log;
} else {
$reporting = E_ALL & ~E_DEPRECATED;
$reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT;
}
error_reporting($reporting);
if (!class_exists('CakeLog')) {
Expand Down

0 comments on commit f71f8b5

Please sign in to comment.