1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-22 16:22:58 +02:00

[ticket/14445] Force refresh before schema generation

PHPBB3-14445
This commit is contained in:
Mate Bartus
2016-02-02 17:16:15 +01:00
parent 63fd2159e0
commit 8f4889da58
2 changed files with 16 additions and 3 deletions

View File

@@ -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');