Then why do I see the in the logs that PHP_MSHUTDOWN_FUNCTION is being called in beginning of a request and end of request.The php script is as follows: <html> <head> <title>PHP Test</title> </head> <body>
<?php myextensionfunction(); </body> </html> When I call this script from web browser I see the logs as : IN PHP_MSHUTDOWN_FUNCTION IN MY EXTENSION FUNCTION IN PHP_MSHUTDOWN_FUNCTION Here I can see PHP_MSHUTDOWN_FUNCTION before entering the myfunction and also after the myfunction.This should not be happening. PHP_MSHUTDOWN_FUNCTION should be called only if I shut down apache server? Thanks Ashish Thanks Ashish Derick Rethans <[EMAIL PROTECTED]> wrote: On Mon, 8 Mar 2004, ashish b\ wrote: > Hello , > I have a extension module which is loaded using the extension= > directive in the php.ini.There is a PHP_MSHUTDOWN_FUNCTION in this > extension module.When I stop apache server this PHP_MSHUTDOWN_FUNCTION > is called. I verified this by having logs in the > PHP_MSHUTDOWN_FUNCTION function. I also called a function in the > extension module from a php script and saw that the > PHP_MSHUTDOWN_FUNCTION is called in the beginning of the request and > also after the request is over.I this correct? Or should > PHP_MSHUTDOWN_FUNCTION be called only during apache shutdown? It's not called at the beginning of a *request* but it is called when apache starts up. Apache first initializes every module, then deinitializes it and then initializes it again which result in MINIT, MSHUTDOWN and MINIT being called. Derick --------------------------------- Do you Yahoo!? Yahoo! Search - Find what you’re looking for faster.