I have someone using my extension who is seeing some strange behavior where the module initializes which Apache starts, the extension works perfectly and then, without warning, after about 40 seconds, the deinitialization routine runs. This kills some state in a global context and everything goes very badly from there. Otherwise, Apache is still running just fine.
The setup is Apache 2.2 / PHP 5.2 on Fedora 7. I personally have not been able to replicate this problem but I'm thinking it must be an Apache worker exiting that's triggering deinit. I know Apache 1.x has that behavior and I'm wondering if anyone knows if 2.2 exhibits that behavior. It's annoying because it means that the module initialization is called once whereas the deinitialization routine is called many times. Does this sound familiar to anyone? I would appreciate any insight as to how I can ensure that my module is deinitialized only once. My first thought is to simply save the pid of the process that initialized the module and check for it in the deinitialization routine. Mike -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php