Rashmi Badan wrote:
The test was trying to load mod_php between graceful restarts, i.e start apache without mod_php, then modify the config file to load it and do a graceful restart. This clearly fails because mod_php loads only on the second load within apache. It does this by setting some pool user data in the beginning of sapi_apache2.c:php_apache_server_startup(). So I'd have to do two graceful restarts for it to take effect.
PHP has never worked well with graceful restarts. Frankly, there are some Apache things that never seemed to do well either. I gave up on graceful restarts 8 years ago. Maybe they are better now.
Just do a full restart and all will be fine. If this is so mission critical that you can't be down for 2 seconds, you need more servers and load balancing. Or if you are restarting your server that often, something else is likely wrong.
As for changing the code, a patch that does not break anything would be the way to approach the list. It was probably done the way it is done for a reason.
-- Brian Moon Senior Developer ------------------------------ When you care enough to spend the very least. http://dealnews.com/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php