php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38391 didnt work for multiple connection
Submitted: 2006-08-09 03:26 UTC Modified: 2006-08-09 07:51 UTC
From: Satria at IndoPHP dot net Assigned:
Status: Not a bug Package: Class/Object related
PHP Version: 5.1.4 OS: Windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: Satria at IndoPHP dot net
New email:
PHP Version: OS:

 

 [2006-08-09 03:26 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-09 07:51 UTC] mike@php.net
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


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 21:01:35 2025 UTC