#35197 [Opn->Asn]: Destructor not called
| From: | tony2001@php.net | Date: | Fri, 11 Nov 2005 21:02:59 +0000 |
| Subject: | #35197 [Opn->Asn]: Destructor not called | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-88052@lists.php.net to get a copy of this message | ||
ID: 35197
Updated by: tony2001@php.net
Reported By: xmlfrance at gmail dot com
-Status: Open
+Status: Assigned
-Bug Type: Scripting Engine problem
+Bug Type: DOM XML related
Operating System: Debian DNU/Linux
PHP Version: 5.1.0RC4
-Assigned To:
+Assigned To: chregu
New Comment:
Christian, please have a look at it.
Previous Comments:
------------------------------------------------------------------------
[2005-11-11 21:59:27] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35197&edit=1