1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/15342] free_space return float and throws exception

PHPBB3-15342
This commit is contained in:
Rubén Calvo
2018-07-09 15:27:16 +02:00
parent 117d9e69ce
commit e5d8b1600b
3 changed files with 10 additions and 4 deletions

View File

@@ -432,6 +432,11 @@ class local implements adapter_interface, stream_interface
{
$free_space = @disk_free_space($this->root_path);
if ($free_space === false)
{
throw new exception('STORAGE_CANNOT_GET_FREE_SPACE');
}
return $free_space;
}
}