From fba014820b8c210d40685d064ce081cbead0d02a Mon Sep 17 00:00:00 2001 From: Brian Wolff Date: Wed, 28 Mar 2018 01:20:07 +0000 Subject: [PATCH] Fix --memory-limit option to maintenance scripts Follow up 2f293bd0. Previously this option was marked as not taking an argument, thus if present it would have the value of true (aka 1). Setting memory limit to 1 results in setting to 256kb, which is way too small. Change-Id: I2a6e512e384c5ef882f7ba2877091ecb8fe01e35 --- maintenance/Maintenance.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/maintenance/Maintenance.php b/maintenance/Maintenance.php index 0c79bd51e5..e3b5f72efb 100644 --- a/maintenance/Maintenance.php +++ b/maintenance/Maintenance.php @@ -508,7 +508,9 @@ abstract class Maintenance { $this->addOption( 'memory-limit', 'Set a specific memory limit for the script, ' - . '"max" for no limit or "default" to avoid changing it' + . '"max" for no limit or "default" to avoid changing it', + false, + true ); $this->addOption( 'server', "The protocol and server name to use in URLs, e.g. " . "http://en.wikipedia.org. This is sometimes necessary because " . -- 2.20.1