Re: Module startup/shutdown in PHP extensions
| From: | David Eriksson | Date: | Fri, 19 Jul 2002 05:42:41 +0000 |
| Subject: | Re: Module startup/shutdown in PHP extensions | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-86022@lists.php.net to get a copy of this message | ||
On Thu, 18 Jul 2002, Pete Dishman wrote:
[snip]
> 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 have never bothered to figure out why :-)
-\- David Eriksson -/-
"I personally refuse to use inferior tools because of ideology."
- Linus Torvalds