#38391 [Opn->Bgs]: didnt work for multiple connection
| From: | mike@php.net | Date: | Wed, 09 Aug 2006 07:51:37 +0000 |
| Subject: | #38391 [Opn->Bgs]: didnt work for multiple connection | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-100565@lists.php.net to get a copy of this message | ||
ID: 38391
Updated by: mike@php.net
Reported By: Satria at IndoPHP dot net
-Status: Open
+Status: Bogus
Bug Type: Class/Object related
Operating System: Windows
PHP Version: 5.1.4
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2006-08-09 03:26:52] Satria at IndoPHP dot net
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 this bug report at http://bugs.php.net/?id=38391&edit=1