#89934E_UER_DEPRECATED errors should be handled by the basic error reporting
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!