From 8562a185aa111b1873e61a9198fafb03c6f48afe Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 23 Apr 2014 14:13:44 -0700 Subject: [PATCH] $maxTimeAllowed still used by tests, causing HHVM to fail Change-Id: Ib1e3bc564ae1524070cf392da6cb22ac368cfe11 --- maintenance/backupTextPass.inc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/maintenance/backupTextPass.inc b/maintenance/backupTextPass.inc index a794750f1e..7fca377335 100644 --- a/maintenance/backupTextPass.inc +++ b/maintenance/backupTextPass.inc @@ -31,6 +31,12 @@ require_once __DIR__ . '/backup.inc'; */ class TextPassDumper extends BackupDumper { public $prefetch = null; + + // when we spend more than maxTimeAllowed seconds on this run, we continue + // processing until we write out the next complete page, then save output file(s), + // rename it/them and open new one(s) + public $maxTimeAllowed = 0; // 0 = no limit + protected $input = "php://stdin"; protected $history = WikiExporter::FULL; protected $fetchCount = 0; @@ -67,10 +73,6 @@ class TextPassDumper extends BackupDumper { protected $xmlwriterobj = false; - // when we spend more than maxTimeAllowed seconds on this run, we continue - // processing until we write out the next complete page, then save output file(s), - // rename it/them and open new one(s) - protected $maxTimeAllowed = 0; // 0 = no limit protected $timeExceeded = false; protected $firstPageWritten = false; protected $lastPageWritten = false; -- 2.20.1