Issue Task Closed

#52463Don't register destructor as shutdown function

Thorsten Kahler 10/02/13, 12:13 updated 10/23/17, 21:48

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.

Reviews 1