Project

General

Profile

Actions

Bug #89934

closed

E_UER_DEPRECATED errors should be handled by the basic error reporting

Added by Vito Alexander Nordloh over 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Logging
Target version:
-
Start date:
2019-12-13
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
5.3
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

Description

Hello!

The TYPO3\CMS\Core\Core\SystemEnvironmentBuilder currently does not ignore E_USER_DEPRECATED errors, which were introduced in PHP 5.3.0:

protected static function initializeBasicErrorReporting()
{
    // Core should be notice free at least until this point ...
    error_reporting(E_ALL & ~(E_STRICT | E_NOTICE | E_DEPRECATED));
}

This results in a massive log file growth:

2019/12/13 10:41:37 [error] 3698#3698: *15452016 FastCGI sent in stderr: " $TSFE->sys_language_uid is not in use anymore as this information is now stored within the language aspect. in ***/typo3_src-9.5.11/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php on line 5165
PHP message: PHP Deprecated:  Property $TSFE->sys_language_uid is not in use anymore as this information is now stored within the language aspect. in ***/typo3_src-9.5.11/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php on line 5165
PHP message: PHP Deprecated:  Property $TSFE->sys_language_uid is not in use anymore as this information is now stored within the language aspect. in ***/typo3_src-9.5.11/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php on line 5165
PHP message: PHP Deprecated:  Property $TSFE->sys_language_uid is not in use anymore as this information is now stored within the language aspect. in ***/typo3_src-9.5.11/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php on line 5165
PHP message: PHP Deprecated:  Property $TSFE->sys_language_uid is not in use anymore as this information is now stored within the language aspect. in ***/typo3_src-9.5.11/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php on line 5165
PHP message: PHP Deprecated:  Property $TSFE->sys_language_uid is not in use anymore as this information is now stored within the language aspect. in ***/typo3_src-9.5.11/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php on line 5165
PHP message: PHP Deprecated:  Property $TSFE->sys_language_uid is not in use anymore as this information is now stored within the language aspect. in ***/typo3_src-9.5.11/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php on line 5165

I guess it makes sense to add the E_USER_DEPRECATED error to the initializeBasicErrorReporting function (at least I don't see any reason why it should be omitted).
Since I don't have a working Typo3 repository etc., I'll leave the update to someone who is familiar with the process of issues a pull request :-)

Cheers!


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #88444: TYPO3 error handler ignores error_reporting level of php.iniClosed2019-05-27

Actions
Actions

Also available in: Atom PDF