From: martinlanghoff Date: Thu, 7 Jun 2007 21:22:20 +0000 (+0000) Subject: moodlelib:moodle_request_shutdown() - only call apache_child_terminate if child_termi... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=97e9803b48fa9e529131f4fa98b77901d0e1b423;p=moodle.git moodlelib:moodle_request_shutdown() - only call apache_child_terminate if child_terminate is true - MDL-9350 Apparently there _is_ a PHP ini setting controlling it -- defaults to off. --- diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 8af6ff0f4a..0916144055 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -6601,7 +6601,9 @@ function moodle_request_shutdown() { // initially, we are only ever called under apache // but check just in case - if (function_exists('apache_child_terminate') && function_exists('memory_get_usage')) { + if (function_exists('apache_child_terminate') + && function_exists('memory_get_usage') + && ini_get_bool('child_terminate')) { if (empty($CFG->apachemaxmem)) { $CFG->apachemaxmem = 25000000; // default 25MiB }