On Fri, Jul 19, 2002 at 07:42:41AM +0200, David Eriksson wrote: > > Now the problem is when I start apache (net start apache) php seems to call > > the module startup function and then it calls the module shutdown function > > immediately afterwards. The request startup and shutdown functions seem to > > work as expected, i.e. they get called when I make a request to apache. > > > > If I then stop apache (net stop apache) the module shutdown function gets > > called as expected. It's just when starting that the problem occurs. Is > > this the expected behaviour and if so is there anyway of telling in the > > module shutdown function if the module really is shutting down or have I > > done something completely wrong? > > I have seen this behaviour too, I guess PHP just works this way, it calls > the module startup and shutdown function pair once on initilization. I'm only guessing, but that may occur when Apache does it's initial fork(s). It's been a while since I worked with the Apache module API, though.
-- Jon Parise ([EMAIL PROTECTED]) . Information Technology (2001) http://www.csh.rit.edu/~jon/ : Computer Science House Member -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php