Project

General

Profile

Actions

Task #52463

closed

Don't register destructor as shutdown function

Added by Thorsten Kahler over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Code Cleanup
Target version:
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

Also available in: Atom PDF