Permalink
Browse files

moodlelib:moodle_request_shutdown() - only call apache_child_terminat…

…e if child_terminate is true - MDL-9350

Apparently there _is_ a PHP ini setting controlling
it -- defaults to off.
  • Loading branch information...
1 parent ed289f9 commit 8d7e790de7b1eb0eafbc2978dc1433749c4309bf martinlanghoff committed Jun 7, 2007
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/moodlelib.php
View
@@ -6527,7 +6527,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
}

0 comments on commit 8d7e790

Please sign in to comment.