cvs: php4 /sapi/apache2filter sapi_apache2.c

From: Date: Tue, 28 Aug 2001 06:19:58 +0000
Subject: cvs: php4 /sapi/apache2filter sapi_apache2.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-7105@lists.php.net to get a copy of this message
dougm Tue Aug 28 02:19:58 2001 EDT Modified files: /php4/sapi/apache2filter sapi_apache2.c Log: not all MPMs support child_init, so move php_apache_server_startup to the post_config phase (happens at server startup) Index: php4/sapi/apache2filter/sapi_apache2.c diff -u php4/sapi/apache2filter/sapi_apache2.c:1.50 php4/sapi/apache2filter/sapi_apache2.c:1.51 --- php4/sapi/apache2filter/sapi_apache2.c:1.50 Wed Aug 22 00:45:51 2001 +++ php4/sapi/apache2filter/sapi_apache2.c Tue Aug 28 02:19:58 2001 @@ -408,12 +408,13 @@ } static void -php_apache_server_startup(apr_pool_t *pchild, server_rec *s) +php_apache_server_startup(apr_pool_t *pconf, apr_pool_t *plog, + apr_pool_t *ptemp, server_rec *s) { tsrm_startup(1, 1, 0, NULL); sapi_startup(&apache2_sapi_module); apache2_sapi_module.startup(&apache2_sapi_module); - apr_pool_cleanup_register(pchild, NULL, php_apache_server_shutdown, apr_pool_cleanup_null); + apr_pool_cleanup_register(pconf, NULL, php_apache_server_shutdown, apr_pool_cleanup_null); php_apache_register_module(); } @@ -452,7 +453,7 @@ static void php_register_hook(apr_pool_t *p) { - ap_hook_child_init(php_apache_server_startup, NULL, NULL, APR_HOOK_MIDDLE); + ap_hook_post_config(php_apache_server_startup, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_insert_filter(php_insert_filter, NULL, NULL, APR_HOOK_MIDDLE); ap_register_output_filter("PHP", php_output_filter, AP_FTYPE_CONTENT); ap_register_input_filter("PHP", php_input_filter, AP_FTYPE_CONTENT);

« previous php.cvs (#7105) next »