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 #1

Updated by Markus Klein over 10 years ago

Can you please push the patch?

Actions #2

Updated by Gerrit Code Review over 10 years ago

  • Status changed from New to Under Review

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/24277

Actions #3

Updated by Thorsten Kahler over 10 years ago

  • Target version deleted (4.5.30)
  • % Done changed from 0 to 100

No need to backport the change.

Actions #4

Updated by Thorsten Kahler over 10 years ago

  • Target version set to 6.2.0
Actions #5

Updated by Gerrit Code Review over 10 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/24277

Actions #6

Updated by Thorsten Kahler over 10 years ago

  • Status changed from Under Review to Resolved
Actions #7

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF