[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:55:42 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):
We need an editing function:
{{{
<?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:6>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list