From: mark at seventhcycle dot net Operating system: Fedora Core 2 PHP version: 5.0.0 PHP Bug Type: Zend Engine 2 problem Bug description: destructor not called
Description: ------------ The destructor for any classes I make isn't being called. Here is a diff of my php.ini to the distributed one. /usr/local/lib#> diff php.ini php.ini-dist 120c120 < zlib.output_compression = On --- > zlib.output_compression = Off 293c293 < log_errors = On --- > log_errors = Off 340c340 < error_log = syslog --- > ;error_log = syslog 373c373 < register_globals = On --- > register_globals = Off 952c952 < session.use_trans_sid = 1 --- > session.use_trans_sid = 0 The reproduced code run below is live here: http://seventhcycle.net/php/classtest.php A copy of my phpinfo can be found here: http://seventhcycle.net/php/phpinfo.php Reproduce code: --------------- <?php class MyDestructableClass { function __construct() { print "construct\n"; } function __destruct() { print "destruct"; } } $obj = new MyDestructableClass(); ?> Expected result: ---------------- construct destruct Actual result: -------------- construct -- Edit bug report at http://bugs.php.net/?id=29372&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29372&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29372&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29372&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29372&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29372&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29372&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29372&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29372&r=support Expected behavior: http://bugs.php.net/fix.php?id=29372&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29372&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29372&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29372&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29372&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29372&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29372&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29372&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29372&r=float