#47412 [Fbk->Opn]: PHP_MSHUTDOWN_FUNCTION not being called under FastCGI

From: Date: Tue, 17 Feb 2009 19:25:07 +0000
Subject: #47412 [Fbk->Opn]: PHP_MSHUTDOWN_FUNCTION not being called under FastCGI
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-133931@lists.php.net to get a copy of this message
 ID:               47412
 User updated by:  tser at deltacontrols dot com
 Reported By:      tser at deltacontrols dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         CGI related
 Operating System: Vista 64
 PHP Version:      5.2.9RC2
 New Comment:

I mean when php-cgi.exe terminates MSHUTDOWN is not being called. This
happen when running in FastCGI mode under IIS.


Previous Comments:
------------------------------------------------------------------------

[2009-02-17 15:40:16] johannes@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



Thread (20 messages)

« previous php.bugs (#133931) next »