diff --git a/app/webroot/index.php b/app/webroot/index.php index 083812fdd8f..526cecba329 100644 --- a/app/webroot/index.php +++ b/app/webroot/index.php @@ -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. diff --git a/cake/bootstrap.php b/cake/bootstrap.php index 88d1526d7e9..1aafb6237dd 100644 --- a/cake/bootstrap.php +++ b/cake/bootstrap.php @@ -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'; diff --git a/cake/console/libs/templates/skel/webroot/index.php b/cake/console/libs/templates/skel/webroot/index.php index 37b6fee4916..6c8cecdd90a 100644 --- a/cake/console/libs/templates/skel/webroot/index.php +++ b/cake/console/libs/templates/skel/webroot/index.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.