mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
MFH: fix #39330 (apache2handler does not call shutdown actions before apache child die)
This commit is contained in:
parent
de64609fec
commit
6d76fc2834
2
NEWS
2
NEWS
@ -1,6 +1,8 @@
|
||||
PHP NEWS
|
||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||
?? ??? 2007, PHP 5.2.4
|
||||
- Fixed bug #39330 (apache2handler does not call shutdown actions before
|
||||
apache child die). (isk at ecommerce dot com, Gopal, Tony)
|
||||
|
||||
31 May 2007, PHP 5.2.3
|
||||
- Changed CGI install target to php-cgi and 'make install' to install CLI
|
||||
|
@ -651,11 +651,17 @@ zend_first_try {
|
||||
return OK;
|
||||
}
|
||||
|
||||
static void php_apache_child_init(apr_pool_t *pchild, server_rec *s)
|
||||
{
|
||||
apr_pool_cleanup_register(pchild, NULL, php_apache_server_shutdown, apr_pool_cleanup_null);
|
||||
}
|
||||
|
||||
void php_ap2_register_hook(apr_pool_t *p)
|
||||
{
|
||||
ap_hook_pre_config(php_pre_config, NULL, NULL, APR_HOOK_MIDDLE);
|
||||
ap_hook_post_config(php_apache_server_startup, NULL, NULL, APR_HOOK_MIDDLE);
|
||||
ap_hook_handler(php_handler, NULL, NULL, APR_HOOK_MIDDLE);
|
||||
ap_hook_child_init(php_apache_child_init, NULL, NULL, APR_HOOK_MIDDLE);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user