From: Chad Horohoe Date: Wed, 23 Apr 2014 21:13:44 +0000 (-0700) Subject: $maxTimeAllowed still used by tests, causing HHVM to fail X-Git-Tag: 1.31.0-rc.0~16042 X-Git-Url: http://git.cyclocoop.org//%22%22.str_replace%28%27%22%27%2C?a=commitdiff_plain;h=8562a185aa111b1873e61a9198fafb03c6f48afe;p=lhc%2Fweb%2Fwiklou.git $maxTimeAllowed still used by tests, causing HHVM to fail Change-Id: Ib1e3bc564ae1524070cf392da6cb22ac368cfe11 --- 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;