|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-06-18 14:17 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 11:00:02 2025 UTC |
Description: ------------ If an exception is thrown from a __destruct in any object that has a cyclic references this results in an Exception without a stack frame. This makes __destruct quiet unusable because this error is hard to debug large applications and cyclic references are quite common in OO. Reproduce code: --------------- $ php -r 'class foo { public function __destruct() { throw new Exception("bar"); }} $f = new foo; $f2 = new foo; $f->foo = $f2; $f2->foo = $f; ' Actual result: -------------- PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0 Fatal error: Exception thrown without a stack frame in Unknown on line 0