Re: [PHP4BETA] sapi_xxx_module()

From: Date: Sat, 28 Aug 1999 08:44:32 +0000
Subject: Re: [PHP4BETA] sapi_xxx_module()
References: 1 2  Groups: php.version4 
Request: Send a blank email to php-version4+get-3798@lists.php.net to get a copy of this message
On Sat, Aug 28, 1999 at 03:01:54AM +0200, Zeev Suraski wrote: > I haven't looked at your patches yet, but to answer your question - > sapi_startup() and sapi_shutdown() are server-wide functions, and are > called once on the server startup and once on the server shutdown (and not > on every request). That's what I need. We need to create a shared memory pool, before the server forks (i.e. in the parent process). > The reason you see a startup and a shutdown and then another startup is due > to an Historical bug in Apache, that started modules, stopped them, and > then started them off again. Because some modules learned to rely on this > buggy behavior, it was later on kept (AFAIK anyway). Bug compatibility sounds like a feature from a special company in Redmond, WA. ;-) > Any particular reason you can't use a standard PHP module to implement > this? You have server-wide and per-request callbacks for startup and > shutdown, why do you want to plug into SAPI? I need something which is called way before per module inits. If there is any other way, just tell me. It would be especially useful, if the shutdown function would be actually called at shutdown time. -- Regards, Sascha Schumann Consultant

« previous php.version4 (#3798) next »