Project

General

Profile

Actions

Bug #21044

closed

Do not show E_DEPRECATED messages on productive systems

Added by Oliver Hader about 15 years ago. Updated over 14 years ago.

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

0%

Estimated time:
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)


Files

11937.diff (1.11 KB) 11937.diff Administrator Admin, 2009-11-04 16:18
11937_v2.diff (5.69 KB) 11937_v2.diff Administrator Admin, 2009-11-17 18:35
11937_v3.diff (6.28 KB) 11937_v3.diff Administrator Admin, 2009-11-17 19:57
11937_v3_42-branch.diff (6.68 KB) 11937_v3_42-branch.diff Administrator Admin, 2009-11-17 20:22
11937_v3_41-branch.diff (6.6 KB) 11937_v3_41-branch.diff Administrator Admin, 2009-11-17 20:22

Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Bug #20611: deprecated function in class.nusoap.php in TYPO3 v.4.3alpha3ClosedBenni Mack2009-06-12

Actions
Related to TYPO3 Core - Feature #19336: Add an error and exception handler (backported from FLOW3)ClosedRupert Germann2008-09-16

Actions
Related to TYPO3 Core - Bug #15025: PHP NoticesClosedChris topher2005-10-11

Actions
Related to TYPO3 Core - Bug #20836: thumbs.php should disable error displayClosed2009-08-05

Actions
Actions #1

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.

Actions #2

Updated by Oliver Hader about 15 years ago

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

Actions #3

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

Actions

Also available in: Atom PDF