#40985 [Csd->Bgs]: CLI version crashes while trying to shutdown, using tsrm_shutdown()

From: Date: Wed, 18 Apr 2007 08:54:26 +0000
Subject: #40985 [Csd->Bgs]: CLI version crashes while trying to shutdown, using tsrm_shutdown()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-111634@lists.php.net to get a copy of this message
ID: 40985 Updated by: tony2001@php.net Reported By: charlie at lemurconsulting dot com -Status: Closed +Status: Bogus Bug Type: Reproducible crash Operating System: Windows XP PHP Version: 5.2.1 Previous Comments: ------------------------------------------------------------------------ [2007-04-18 08:40:58] charlie at lemurconsulting dot com Fixed as described. ------------------------------------------------------------------------ [2007-04-18 07:47:24] tony2001@php.net Not PHP problem -> bogus. ------------------------------------------------------------------------ [2007-04-18 07:27:22] daniel dot menard at bdsp dot tm dot fr Charlie added the code suggested by fmk@php.net to the xapian extension, and it resolves the problems we encountered. The PHP Xapian extension now works nicely with all the php 5.x versions without any crash. Thanks a lot to tony2001 and fmk for the help they provided and for being so fast to answer. ------------------------------------------------------------------------ [2007-04-11 01:00:01] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2007-04-03 22:06:13] fmk@php.net This seams to me like a problem outside of PHP. The xapian extension create module globals but does not do any cleanup. Looks to me like it can be solved with code like this: PHP_MSHUTDOWN_FUNCTION(printer) { #ifdef ZTS ts_free_id(printer_globals_id); #else php_printer_shutdown(&printer_globals TSRMLS_CC); #endif UNREGISTER_INI_ENTRIES(); return SUCCESS; } I have not tested anything, but just remembering the same type of problem with the printer (and other) exntension in the past. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/40985 -- Edit this bug report at http://bugs.php.net/?id=40985&edit=1

« previous php.bugs (#111634) next »