#38391 [NEW]: didnt work for multiple connection

From: Date: Wed, 09 Aug 2006 03:26:52 +0000
Subject: #38391 [NEW]: didnt work for multiple connection
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-100557@lists.php.net to get a copy of this message
From: Satria at IndoPHP dot net Operating system: Windows PHP version: 5.1.4 PHP Bug Type: Class/Object related Bug description: didnt work for multiple connection Description: ------------ Destructor didnt called when unset(); Reproduce code: --------------- <?php class test { public $recursive; public function __destruct() {echo 'Destruct';} } $a=new test; $a->recursive=&$a; //this recursive properties make __destruct didnt called when unset(); unset($a); echo 'Should be no output after this'; ?> Expected result: ---------------- Expected Result: DestructShould be no output after this Actual result: -------------- Current Scripts output: Should be no output after thisDestruct -- Edit bug report at http://bugs.php.net/?id=38391&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38391&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38391&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38391&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38391&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38391&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38391&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38391&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38391&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38391&r=support Expected behavior: http://bugs.php.net/fix.php?id=38391&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38391&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38391&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38391&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38391&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38391&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38391&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38391&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38391&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38391&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38391&r=mysqlcfg

« previous php.bugs (#100557) next »