Bug #21044
closedDo not show E_DEPRECATED messages on productive systems
0%
Description
With PHP 5.3 the error level E_DEPRECATED was introduced that shows messages concerning deprecated PHP methods and behaviours.
To avoid displaying these messages on productive systems, the error_reporting (e.g. used in index_ts.php) should be extended like this:
error_reporting (E_ALL ^ E_NOTICE ^ E_DEPRECATED);
Branches: Trunk, 4_2, 4_1
(issue imported from #M11937)
Files
Updated by Andreas Wolf about 15 years ago
We should also consider having a custom error handler for E_DEPRECATED which logs these messages.
Aditionally, we have to define E_DEPRECATED if it is not defined (i.e., for PHP < 5.3), otherwise we risk fatal errors with these systems.
Updated by Oliver Hader about 15 years ago
Concerning the error handler: There's already a patch pending in the Core List #19336
Updated by Rupert Germann almost 15 years ago
FYI: committed attached v3 patches to
trunk rev 6460
4_2 branch rev 6461
4_1 branch rev 6462