MINIT RINIT et al
| From: | Thomas Wentzel | Date: | Tue, 10 Dec 2002 16:04:33 +0000 |
| Subject: | MINIT RINIT et al | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-92314@lists.php.net to get a copy of this message | ||
Ok!
My last postings were about the lack of global init/shutdown functions.
Derick
was kind enough to tell me, that these were deprecated and that I should
use MINIT
for my initalisations. Well.. this was what I had been doing until it
just didn't seem
adequate for my needs. I decided to give it another go but my attempts
have given rise
to some issues I need explained.
As I'm compiling my modules into php I understand and have verified that
MINIT is
called whenever I start apache. (and MSHUTDOWN when I stop apache)
RINIT/RSHUTDOWN continue to baffle me though. Why do RINIT get called
when I
start apache? (after MINIT). Shouldn't that happen only if I had
compiled my extension as
a dynamic extension, that required dl'ing?
In fact RINIT/RSHUTDOWN only gets called once (when starting/stopping
apache).
As I read the documentation RINIT should be called whenever I direct my
browser to a
page which requires php, and RSHUTDOWN when that request has ended. Am I
getting
this all backwards?
TIA
Thomas