[wp-trac] Re: [WordPress Trac] #3354: PHP 5.2 & Fatal error in
cache.php
WordPress Trac
wp-trac at lists.automattic.com
Sat Dec 2 13:51:38 GMT 2006
#3354: PHP 5.2 & Fatal error in cache.php
-----------------------+----------------------------------------------------
Reporter: pulponair | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: General | Version: 2.0.5
Severity: blocker | Resolution:
Keywords: |
-----------------------+----------------------------------------------------
Comment (by darkfate):
You can also call destruct as a function in a class:
<?php
class Destruct
{
function Destruct()
{
return $this->__construct(); // forward php4 to __construct
}
function __construct()
{
// register __destruct method as shutdown function
register_shutdown_function(array(&$this, "__destruct"));
return true;
}
function __destruct()
{
// finish stuff
return true;
}
}
$obj = new Destruct();
?>
--
Ticket URL: <http://trac.wordpress.org/ticket/3354#comment:5>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list