Make WordPress Core

Opened 14 years ago

Closed 12 years ago

#15213 closed defect (bug) (wontfix)

Post WP3.1 PHP 5 register_shutdown_function() note - Remove Backwards compability

Reported by: hakre's profile hakre Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.1
Component: General Keywords: needs-patch
Focuses: Cc:


In some classes (DB, Cache) register_shutdown_function() is used to mimic destruct() in PHP 4 so it looks appropriate to remove that when wordpress codebase becomes PHP 5.2+.

But in fact the register_shutdown_function() probably must be kept for backwards compatibility, bećause desctruct() is not called in PHP 5.2+ in all cases in which register_shutdown_function() registered functions are called.

So to remove the shutdown hook will break backwards compatibility because it is buggy for a mimic of destruct().

I suggest to remove this buggy implementation and break with backwards compatibility.

Change History (3)

#1 @Denis-de-Bernardy
14 years ago

These were introduced because of #3354 and similar issues. Which affect 5.2 platforms...

Suggesting wontfix until we require PHP 5.3 or PHP 6.

#2 @scribu
13 years ago

  • Milestone changed from Awaiting Review to Future Release

#3 @ryan
12 years ago

  • Milestone Future Release deleted
  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.