1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-24 01:03:05 +02:00

[ticket/13740] CLI installer and fixes

[ci skip]

PHPBB3-13740
This commit is contained in:
Tristan Darricau
2015-05-31 17:19:42 +02:00
committed by Mate Bartus
parent 524b98e7bd
commit 06f4ebce1b
18 changed files with 1165 additions and 7 deletions

View File

@@ -147,6 +147,11 @@ class config
*/
public function get_time_remaining()
{
if ($this->system_data['max_execution_time'] <= 0)
{
return 1;
}
return ($this->system_data['start_time'] + $this->system_data['max_execution_time']) - time();
}
@@ -157,6 +162,11 @@ class config
*/
public function get_memory_remaining()
{
if ($this->system_data['memory_limit'] <= 0)
{
return 1;
}
if (function_exists('memory_get_usage'))
{
return ($this->system_data['memory_limit'] - memory_get_usage());