ID: 47412 Updated by: j...@php.net Reported By: tser at deltacontrols dot com -Status: Open +Status: Feedback Bug Type: CGI related Operating System: Vista 64 PHP Version: 5.2.9RC2 -Assigned To: +Assigned To: fb-req-jani New Comment:
Are you talking about the parent or childs? (And I can not reproduce this on linux, shutdown for every extension is definately called..) Previous Comments: ------------------------------------------------------------------------ [2009-02-17 19:25:07] tser at deltacontrols dot com I mean when php-cgi.exe terminates MSHUTDOWN is not being called. This happen when running in FastCGI mode under IIS. ------------------------------------------------------------------------ [2009-02-17 15:40:16] johan...@php.net What do you mean by "recycled"? A new request coming in? MSHUTDOWN is only called when the PHP process terminates. RSHUTDOWN is the one being called after each request at request shutdown. ------------------------------------------------------------------------ [2009-02-16 20:58:14] tser at deltacontrols dot com Description: ------------ Using FastCGI with IIS, the PHP_MSHUTDOWN_FUNCTION of any extensions are not being called when the php_cgi.exe process is recycled. PHP_MINIT_FUNCTION(xxx) { REGISTER_INI_ENTRIES(); } PHP_MSHUTDOWN_FUNCTION(xxx) { UNREGISTER_INI_ENTRIES(); return SUCCESS; } It happens on our custom extension and any standard extension. It could be easily duplicatable even by putting a break point on PHP_MSHUTDOWN_FUNCTION in php_date.c Reproduce code: --------------- <?phpinfo();?> Expected result: ---------------- PHP_MSHUTDOWN_FUNCTION being called. Actual result: -------------- PHP_MSHUTDOWN_FUNCTION not being called. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47412&edit=1