Permalink
Browse files

Moving error flags to core bootstrap to avoid extra changes in user f…

…iles, fixing error in previous commit.
  • Loading branch information...
1 parent e47b196 commit 7847044711720333815524e10a6ef15a3f3e5e3d @nateabele nateabele committed Aug 1, 2009
Showing with 3 additions and 15 deletions.
  1. +0 −7 app/webroot/index.php
  2. +3 −1 cake/bootstrap.php
  3. +0 −7 cake/console/libs/templates/skel/webroot/index.php
View
@@ -52,13 +52,6 @@
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
define('CAKE_CORE_INCLUDE_PATH', ROOT);
}
-/**
- * PHP 5.3 raises many notices in bootstrap.
- */
- if (!defined('E_DEPRECATED')) {
- define('E_DEPRECATED', 8192);
- }
- error_reporting(E_ALL & ~E_DEPRECATED);
/**
* Editing below this line should NOT be necessary.
View
@@ -23,8 +23,10 @@
define('PHP5', (PHP_VERSION >= 5));
}
if (!defined('E_DEPRECATED')) {
- define('PHP5', (PHP_VERSION >= 5));
+ define('E_DEPRECATED', 8192);
}
+error_reporting(E_ALL & ~E_DEPRECATED);
+
require CORE_PATH . 'cake' . DS . 'basics.php';
$TIME_START = getMicrotime();
require CORE_PATH . 'cake' . DS . 'config' . DS . 'paths.php';
@@ -62,13 +62,6 @@
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
define('CAKE_CORE_INCLUDE_PATH', ROOT);
}
-/**
- * PHP 5.3 raises many notices in bootstrap.
- */
- if (!defined('E_DEPRECATED')) {
- define('E_DEPRECATED', 8192);
- }
- error_reporting(E_ALL & ~E_DEPRECATED);
/**
* Editing below this line should not be necessary.

0 comments on commit 7847044

Please sign in to comment.