aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/install/helper
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2016-02-02 21:16:37 +0100
committerTristan Darricau <tristan.darricau@sensiolabs.com>2016-02-02 21:16:37 +0100
commit4133d8a5f15451a00f2f1ed6a4154591ae7f908a (patch)
tree03f088e46842b7fd68281c432abd503829e21179 /phpBB/phpbb/install/helper
parent154c7500ea1852b1269d687c03bca4251c9c5bb0 (diff)
parent8f4889da58e0aa4779ec6bf7c0e747c26a13aee3 (diff)
downloadforums-4133d8a5f15451a00f2f1ed6a4154591ae7f908a.tar
forums-4133d8a5f15451a00f2f1ed6a4154591ae7f908a.tar.gz
forums-4133d8a5f15451a00f2f1ed6a4154591ae7f908a.tar.bz2
forums-4133d8a5f15451a00f2f1ed6a4154591ae7f908a.tar.xz
forums-4133d8a5f15451a00f2f1ed6a4154591ae7f908a.zip
Merge pull request #4156 from CHItA/ticket/14445
[ticket/14445] Force refresh before schema generation * CHItA/ticket/14445: [ticket/14445] Force refresh before schema generation
Diffstat (limited to 'phpBB/phpbb/install/helper')
-rw-r--r--phpBB/phpbb/install/helper/config.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/phpbb/install/helper/config.php b/phpBB/phpbb/install/helper/config.php
index 0f0840f470..ab5af86320 100644
--- a/phpBB/phpbb/install/helper/config.php
+++ b/phpBB/phpbb/install/helper/config.php
@@ -157,10 +157,10 @@ class config
{
if ($this->system_data['max_execution_time'] <= 0)
{
- return 1;
+ return PHP_INT_MAX;
}
- return ($this->system_data['start_time'] + $this->system_data['max_execution_time']) - time();
+ return ($this->system_data['start_time'] + $this->system_data['max_execution_time']) - microtime(true);
}
/**
@@ -430,7 +430,7 @@ class config
$this->system_data['max_execution_time'] = $execution_time;
// Set start time
- $this->system_data['start_time'] = time();
+ $this->system_data['start_time'] = microtime(true);
// Get memory limit
$this->system_data['memory_limit'] = $this->php_ini->getBytes('memory_limit');