Re: tsrm_shutdown() and the CLI SAPI
| From: | Andi Gutmans | Date: | Thu, 01 Jun 2006 04:24:33 +0000 |
| Subject: | Re: tsrm_shutdown() and the CLI SAPI | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-23839@lists.php.net to get a copy of this message | ||
At 04:28 AM 5/31/2006, Steph Fox wrote:
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. 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. AndiProbably some other bug that is the reason of the crash was masked by omitting FreeLibrary(). I know Tony fixed some kind of such bugs in ext/tidy and ext/sybase.Yes, he gave those extensions the ts_free_id() workaround I mentioned a looooooooooong time ago when I first started looking into this.