Skip to content

Commit b2d13fc

Browse files
nateabelemarkstory
authored andcommitted
Moving error flags to core bootstrap to avoid extra changes in user files, fixing error in previous commit.
1 parent 12e0652 commit b2d13fc

File tree

3 files changed

+4
-14
lines changed

3 files changed

+4
-14
lines changed

app/webroot/index.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,6 @@
5757
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
5858
define('CAKE_CORE_INCLUDE_PATH', ROOT);
5959
}
60-
/**
61-
* PHP 5.3 raises many notices in bootstrap.
62-
*/
63-
if (!defined('E_DEPRECATED')) {
64-
define('E_DEPRECATED', 8192);
65-
}
66-
error_reporting(E_ALL & ~E_DEPRECATED);
6760

6861
/**
6962
* Editing below this line should NOT be necessary.

cake/bootstrap.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
if (!defined('PHP5')) {
2828
define('PHP5', (PHP_VERSION >= 5));
2929
}
30+
if (!defined('E_DEPRECATED')) {
31+
define('E_DEPRECATED', 8192);
32+
}
33+
error_reporting(E_ALL & ~E_DEPRECATED);
3034
/**
3135
* Configuration, directory layout and standard libraries
3236
*/

cake/console/libs/templates/skel/webroot/index.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,6 @@
5757
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
5858
define('CAKE_CORE_INCLUDE_PATH', ROOT);
5959
}
60-
/**
61-
* PHP 5.3 raises many notices in bootstrap.
62-
*/
63-
if (!defined('E_DEPRECATED')) {
64-
define('E_DEPRECATED', 8192);
65-
}
66-
error_reporting(E_ALL & ~E_DEPRECATED);
6760

6861
/**
6962
* Editing below this line should not be necessary.

0 commit comments

Comments
 (0)