aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/lock/flock.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/lock/flock.php')
-rw-r--r--phpBB/phpbb/lock/flock.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/phpbb/lock/flock.php b/phpBB/phpbb/lock/flock.php
index df88e1490a..af051afb56 100644
--- a/phpBB/phpbb/lock/flock.php
+++ b/phpBB/phpbb/lock/flock.php
@@ -101,7 +101,10 @@ class flock
if ($this->lock_fp)
{
- @flock($this->lock_fp, LOCK_EX);
+ if (!@flock($this->lock_fp, LOCK_EX))
+ {
+ throw new \phpbb\exception\http_exception(500, 'Failure while aqcuiring locks.');
+ }
}
return (bool) $this->lock_fp;