]> git.mjollnir.org Git - moodle.git/commitdiff
moodlelib:moodle_request_shutdown() - only call apache_child_terminate if child_termi...
authormartinlanghoff <martinlanghoff>
Thu, 7 Jun 2007 21:22:20 +0000 (21:22 +0000)
committermartinlanghoff <martinlanghoff>
Thu, 7 Jun 2007 21:22:20 +0000 (21:22 +0000)
Apparently there _is_ a PHP ini setting controlling
it -- defaults to off.

lib/moodlelib.php

index 8af6ff0f4a805c5d6b6b7bb15809d385e8d0ff2b..0916144055d192c8d99736b06ce21f043987f450 100644 (file)
@@ -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
         }