ID: 40985
Comment by: daniel dot menard at bdsp dot tm dot fr
Reported By: charlie at lemurconsulting dot com
Status: Open
Bug Type: Reproducible crash
Operating System: Windows XP
PHP Version: 5.2.1
New Comment:
The same bug appear with the cgi version.
The only known workaround for now is to patch php_cgi.c in the same
way, removing any call to tsrm_shutdown()
Previous Comments:
------------------------------------------------------------------------
[2007-04-03 14:00:47] charlie at lemurconsulting dot com
Description:
------------
While trying to make the Xapian (www.xapian.org) PHP bindings work on
Windows using Visual C++, we found that the CLI version of PHP would
crash when unloading the bindings. The bindings are written using SWIG.
PHP appears to be trying to unload resources when the crash occurs. The
crash does not occur on earlier versions of PHP i.e. 4.4.6
Reproduce code:
---------------
The following patch fixes the problem and has been used as a
workaround:
Patch php_cli.c as follows by commenting out line 1283:
#ifdef ZTS
/* tsrm_shutdown(); */
#endif
Expected result:
----------------
No crash :)
Actual result:
--------------
n/a
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40985&edit=1