Actions
Task #52463
closedDon't register destructor as shutdown function
Start date:
2013-10-02
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:
Description
PHP knows the destructor method __destruct()
since PHP 5.0 (July 2004).
In \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstanceService()
the method __destruct()
is still registered as shutdown function. This requirement prevents classes without destructor method to be registered as TYPO3 service.
This workaround for PHP 4.x can be removed since 5.2 is required for many years now.
Actions