ID: 47412
Updated by: [email protected]
Reported By: tser at deltacontrols dot com
-Status: Open
+Status: Feedback
Bug Type: CGI related
Operating System: Vista 64
PHP Version: 5.2.9RC2
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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