From 0989530df95203afeea38172e25bb312cbf901bf Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Thu, 7 Jun 2007 21:21:49 +0000 Subject: [PATCH] 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. --- lib/moodlelib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 36377c6120a..66efce49016 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -6525,7 +6525,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 }