From: eyglys at yahoo dot com dot br Operating system: Windows PHP version: 5.0.0RC1 PHP Bug Type: Zend Engine 2 problem Bug description: class destructor
Description: ------------ Destructor method is actived two times Reproduce code: --------------- /* source code */ <? class t { function __construct() { echo "constructor\n"; } function __destruct() { echo "destructor\n"; } } $p = new t(); ?> Expected result: ---------------- /* the output expected is */ constructor destructor Actual result: -------------- /* the result output */ constructor destructor destructor -- Edit bug report at http://bugs.php.net/?id=27698&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27698&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27698&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27698&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27698&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27698&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27698&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27698&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27698&r=support Expected behavior: http://bugs.php.net/fix.php?id=27698&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27698&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27698&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27698&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27698&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27698&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27698&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27698&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27698&r=float