|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-08-09 07:51 UTC] mike@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 17 22:00:01 2025 UTC |
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