Re: [patch] Zend/zend_objects_API.c - bug #29980 (segfault while executing __destruct())
| From: | Antony Dovgal | Date: | Fri, 10 Sep 2004 06:23:47 +0000 |
| Subject: | Re: [patch] Zend/zend_objects_API.c - bug #29980 (segfault while executing __destruct()) | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-12701@lists.php.net to get a copy of this message | ||
On Thu, 09 Sep 2004 23:15:08 -0700
Andi Gutmans <andi@zend.com> wrote:
> I think this makes sense because PHP could be in an unstable state.
> Think EG(exit_status) covers all possible situations? No time to check
> now how it differs from CG(unclean_shutdown) which is most often used.
Well, as I can see zend_error() doesn't change CG(unclean_shutdown), but uses EG(exit_status)
instead.
And there is a side-effect: using exit_status we allow user to disable destructors calling
exit($non_zero_status);
Probably, this patch needs some more investigation.
--
Wbr,
Antony Dovgal aka tony2001
tony2001@phpclub.net || antony@dovgal.com