mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge branch '3.3.x'
This commit is contained in:
commit
310162fd1c
1 changed files with 2 additions and 2 deletions
|
@ -73,7 +73,7 @@ class flock
|
|||
// one file for writing simultaneously
|
||||
if (file_exists($this->path . '.lock'))
|
||||
{
|
||||
$mode = 'rb';
|
||||
$mode = 'rb+';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -89,7 +89,7 @@ class flock
|
|||
// Two processes may attempt to create lock file at the same time.
|
||||
// Have the losing process try opening the lock file again for reading
|
||||
// on the assumption that the winning process created it
|
||||
$mode = 'rb';
|
||||
$mode = 'rb+';
|
||||
$this->lock_fp = @fopen($this->path . '.lock', $mode);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue