Re: PHP4 CLI/ISAPI not calling module destructors?

php.internals

Michael Sisolak

22 years ago
> 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/