#35197 [NEW]: Destructor not called
| From: | xmlfrance at gmail dot com | Date: | Fri, 11 Nov 2005 20:59:28 +0000 |
| Subject: | #35197 [NEW]: Destructor not called | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-88051@lists.php.net to get a copy of this message | ||
From: xmlfrance at gmail dot com
Operating system: Debian DNU/Linux
PHP version: 5.1.0RC4
PHP Bug Type: Scripting Engine problem
Bug description: Destructor not called
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 bug report at http://bugs.php.net/?id=35197&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35197&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35197&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35197&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=35197&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35197&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35197&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35197&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35197&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35197&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35197&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35197&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35197&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35197&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35197&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35197&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35197&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35197&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35197&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35197&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35197&r=mysqlcfg