# PHP4 CLI/ISAPI not calling module destructors?

- Thread: https://externals.io/message/6273
- Original archive: https://news-web.php.net/php.internals/6273
- Started by Michael Sisolak on 2003-12-07T22:00:18+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #6273 — Michael Sisolak — 2003-12-07T22:00:18+00:00

URL: https://externals.io/message/6273#6273

> Is there a place that I'm missing where these dtors should be getting
> called?  If I add a ts_free_thread() before the final tsrm_shutdown()
> in php_cli.c then in my testing (all Win32) the dtors do then get
> called correctly.

If I add a call to ts_free_thread() before the tsrm_shutdown() in the
ISAPI many, many leaks disappear (as the dtors get called).  Rather
than a call to ts_free_thread() before each tsrm_shutdown(), should
tsrm_shutdown() itself be calling ts_free_thread() before it does
anything else?

Michael Sisolak
msisolak@yahoo.com

__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
