]> granicus.if.org Git - php/commitdiff
MFB: Fixed bug #45144 (ap_child_terminate() isn't available on threaded builds)
authorScott MacVicar <scottmac@php.net>
Sun, 1 Jun 2008 16:10:46 +0000 (16:10 +0000)
committerScott MacVicar <scottmac@php.net>
Sun, 1 Jun 2008 16:10:46 +0000 (16:10 +0000)
sapi/apache/mod_php.c

index 937cac31596b3889f73c035d79fd50d2c7332571..35fa7c222a78142032d448be4c1c915e5dbf6708 100644 (file)
@@ -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
 }
 /* }}} */