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

From: Date: Tue, 17 Feb 2009 15:40:16 +0000
Subject: #47412 [Opn->Fbk]: PHP_MSHUTDOWN_FUNCTION not being called under FastCGI
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-133916@lists.php.net to get a copy of this message
 ID:               47412
 Updated by:       johannes@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
 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



Thread (20 messages)

« previous php.bugs (#133916) next »