From b0af2fbe421144966de9b466a9c97a1dbeda8ec5 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 14 Nov 2017 20:33:46 +1100 Subject: [PATCH] Do not limit filesize when running a maintenance script Starting HHVM may require writing very large files, so it can't have the same file size limit as image scaling etc. The memory limit was already disabled for much the same reason. This is the only caller of wfShellWikiCmd() in core which proceeds to call wfShellExec(). Bug: T145819 Change-Id: I1ab35edbbdb63c2d6f5f578cba2547be79a965ef --- includes/SiteConfiguration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SiteConfiguration.php b/includes/SiteConfiguration.php index 7a01a6575b..2d1d961dec 100644 --- a/includes/SiteConfiguration.php +++ b/includes/SiteConfiguration.php @@ -556,7 +556,7 @@ class SiteConfiguration { ] ); // ulimit5.sh breaks this call - $data = trim( wfShellExec( $cmd, $retVal, [], [ 'memory' => 0 ] ) ); + $data = trim( wfShellExec( $cmd, $retVal, [], [ 'memory' => 0, 'filesize' => 0 ] ) ); if ( $retVal != 0 || !strlen( $data ) ) { throw new MWException( "Failed to run getConfiguration.php." ); } -- 2.20.1