From: Scott MacVicar Date: Sun, 1 Jun 2008 16:10:46 +0000 (+0000) Subject: MFB: Fixed bug #45144 (ap_child_terminate() isn't available on threaded builds) X-Git-Tag: BEFORE_HEAD_NS_CHANGE~1616 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2926ffea4df7f88cb47b2122632077777a5d021a;p=php MFB: Fixed bug #45144 (ap_child_terminate() isn't available on threaded builds) --- diff --git a/sapi/apache/mod_php.c b/sapi/apache/mod_php.c index 937cac3159..35fa7c222a 100644 --- a/sapi/apache/mod_php.c +++ b/sapi/apache/mod_php.c @@ -435,7 +435,9 @@ static time_t php_apache_get_request_time(TSRMLS_D) */ static void sapi_apache_child_terminate(TSRMLS_D) { +#ifndef MULTITHREAD ap_child_terminate((request_rec *)SG(server_context)); +#endif } /* }}} */