com php-src: Fixed bug #75479: sapi/apache2handler/sapi_apa che2.c

From: Date: Sun, 30 Sep 2018 18:07:15 +0000
Subject: com php-src: Fixed bug #75479: sapi/apache2handler/sapi_apa che2.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-103279@lists.php.net to get a copy of this message
Commit: db80e0e2ad016cbff55cc6e1311b7ffe9ad7101e Author: Nikita Popov <nikita.ppv@gmail.com> Sun, 30 Sep 2018 20:05:30 +0200 Parents: 83e2b9e2202da6cc25bdaac67a58022b90be88e7 Branches: PHP-7.1 PHP-7.2 PHP-7.3 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=db80e0e2ad016cbff55cc6e1311b7ffe9ad7101e Log: Fixed bug #75479 Wrap the zend_signal_init() call, so the hook arguments line up. Bugs: https://bugs.php.net/75479 Changed paths: M sapi/apache2handler/sapi_apache2.c Diff: diff --git a/sapi/apache2handler/sapi_apache2.c b/sapi/apache2handler/sapi_apache2.c index 2c3356b..11a0b1c 100644 --- a/sapi/apache2handler/sapi_apache2.c +++ b/sapi/apache2handler/sapi_apache2.c @@ -747,13 +747,20 @@ static void php_apache_child_init(apr_pool_t *pchild, server_rec *s) apr_pool_cleanup_register(pchild, NULL, php_apache_child_shutdown, apr_pool_cleanup_null); } +#ifdef ZEND_SIGNALS +static void php_apache_signal_init(apr_pool_t *pchild, server_rec *s) +{ + zend_signal_init(); +} +#endif + 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); #ifdef ZEND_SIGNALS - ap_hook_child_init(zend_signal_init, NULL, NULL, APR_HOOK_MIDDLE); + ap_hook_child_init(php_apache_signal_init, NULL, NULL, APR_HOOK_MIDDLE); #endif ap_hook_child_init(php_apache_child_init, NULL, NULL, APR_HOOK_MIDDLE); }

« previous php.cvs (#103279) next »