RE: [PHP-DEV] tsrm_shutdown() and the CLI SAPI
| From: | Dmitry Stogov | Date: | Thu, 01 Jun 2006 06:34:56 +0000 |
| Subject: | RE: [PHP-DEV] tsrm_shutdown() and the CLI SAPI | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-23846@lists.php.net to get a copy of this message | ||
I agree.
I'll try to make it work from inside zend_shudown() but probably it will
requre modification of EVERY extension that uses module_globals in any case.
Thanks. Dmitry.
> -----Original Message-----
> From: Steph Fox [mailto:steph@zend.com]
> Sent: Thursday, June 01, 2006 8:48 AM
> To: Dmitry Stogov; 'Xuefer'; Andi Gutmans
> Cc: 'internals'; Antony Dovgal
> Subject: Re: [PHP-DEV] tsrm_shutdown() and the CLI SAPI
>
>
> > I'm a bit behind so sorry if this has been answered
> already. I don't
> > think
> > ts_free_id() is a workaround but it's actually correct.
>
> ts_free_id() would be a correct workaround if it came from
> zend_shutdown().
> How's it right to suddenly force EVERY extension author to
> add it to their
> code individually?
>
> We
> > should free the resources of the extension during MSHUTDOWN
> and that's
> > the
> > way to do it in ZTS. Good chance that the crash is actually
> a bug which
> > needs fixing although there could also be a bug lurking.
> >
> > Andi
>
>
>