|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-12-06 07:36 UTC] mike@php.net
-Status: Open
+Status: Not a bug
[2013-12-06 07:36 UTC] mike@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 04:00:01 2025 UTC |
Description: ------------ After saving an object in __destruct, __destruct is not called again. Test script: --------------- class ClassSave { function __destruct(){ global $test; $test = $this; echo "Destruct\r\n"; } } echo "1: "; new ClassSave(); echo "2: "; $test = null; unset($test); echo "End\r\n"; Expected result: ---------------- 1: Destruct 2: Destruct End Actual result: -------------- 1: Destruct 2: End