PHP :: Bug #35197 :: Destructor not called
| Bug #35197 | Destructor not called | ||||
|---|---|---|---|---|---|
| Submitted: | 2005-11-11 21:59 UTC | Modified: | 2005-11-14 23:00 UTC | ||
| From: | xmlfrance at gmail dot com | Assigned: | tony2001 (profile) | ||
| Status: | Closed | Package: | DOM XML related | ||
| PHP Version: | 5.0.5 and 5.1.0RC5-dev | OS: | Debian GNU/Linux SID | ||
| Private report: | No | CVE-ID: | None | ||
[2005-11-11 21:59 UTC] xmlfrance at gmail dot com
Description:
------------
My classes extending DOMDocument don't call the destructor.
Reproduce code:
---------------
<?php
class Foo extends DOMDocument {
function __construct() {
print('Construction');
}
function __destruct() {
print('Destruction');
}
}
$o = new Foo;
/* I've also tried unset($o) */
?>
Expected result:
----------------
ConstructionDestruction
Actual result:
--------------
Construction
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2005-11-12 11:34 UTC] xmlfrance at gmail dot com
[2005-11-14 23:00 UTC] tony2001@php.net