diff --git a/core/util.inc.php b/core/util.inc.php index a44f932a..4b747190 100644 --- a/core/util.inc.php +++ b/core/util.inc.php @@ -161,6 +161,8 @@ function get_memory_limit() { $memory = $default_limit; } + assert($memory > 0); + return $memory; }