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 12e0652 commit b2d13fce40cf565c7c1129ef9243e78b33dd9f32 @nateabele nateabele committed with markstory Aug 1, 2009
Showing with 4 additions and 14 deletions.
  1. +0 −7 app/webroot/index.php
  2. +4 −0 cake/bootstrap.php
  3. +0 −7 cake/console/libs/templates/skel/webroot/index.php
View
7 app/webroot/index.php
@@ -57,13 +57,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
4 cake/bootstrap.php
@@ -27,6 +27,10 @@
if (!defined('PHP5')) {
define('PHP5', (PHP_VERSION >= 5));
}
+if (!defined('E_DEPRECATED')) {
+ define('E_DEPRECATED', 8192);
+}
+error_reporting(E_ALL & ~E_DEPRECATED);
/**
* Configuration, directory layout and standard libraries
*/
View
7 cake/console/libs/templates/skel/webroot/index.php
@@ -57,13 +57,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 b2d13fc

Please sign in to comment.