Re: exceptions in the destructor
| From: | Marcus Boerger | Date: | Tue, 20 Dec 2005 23:53:36 +0000 |
| Subject: | Re: exceptions in the destructor | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-21293@lists.php.net to get a copy of this message | ||
Hello Daine,
> a) i didn't contradict myself - you obviously didn't really follow
> what i wrote
> b) you can force calling the destructor by using unset() or = null;
> but only if reference count is 1.
> c) exceptions are 'thrown' not called, maybe you didn't use throw new
> exception here or you were just writing a bit weired?
> d) as said already several times (not only to you) exceptions *can*
> be thrown in destructors
> e) this doesn't belong in internals@
to not forget to mention: the only thing you cannot do is throwing an
exception while an exception is already pending.
regards
marcus