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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Wed Jul 03 13:01:33 2024 UTC