Bug #21044

Do not show E_DEPRECATED messages on productive systems

Added by Oliver Hader about 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2009-09-12
Due date:
% Done:

0%

TYPO3 Version:
4.3
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

11937.diff View (1.11 KB) Administrator Admin, 2009-11-04 16:18

11937_v2.diff View (5.69 KB) Administrator Admin, 2009-11-17 18:35

11937_v3.diff View (6.28 KB) Administrator Admin, 2009-11-17 19:57

11937_v3_42-branch.diff View (6.68 KB) Administrator Admin, 2009-11-17 20:22

11937_v3_41-branch.diff View (6.6 KB) Administrator Admin, 2009-11-17 20:22


Related issues

Related to TYPO3 Core - Bug #20611: deprecated function in class.nusoap.php in TYPO3 v.4.3alpha3 Closed 2009-06-12
Related to TYPO3 Core - Feature #19336: Add an error and exception handler (backported from FLOW3) Closed 2008-09-16
Related to TYPO3 Core - Bug #15025: PHP Notices Closed 2005-10-11
Related to TYPO3 Core - Bug #20836: thumbs.php should disable error display Closed 2009-08-05

History

#1 Updated by Andreas Wolf about 10 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.

#2 Updated by Oliver Hader about 10 years ago

Concerning the error handler: There's already a patch pending in the Core List #19336

#3 Updated by Rupert Germann about 10 years ago

FYI: committed attached v3 patches to

trunk rev 6460
4_2 branch rev 6461
4_1 branch rev 6462

Also available in: Atom PDF