We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 794ef96 commit 0ab9b8dCopy full SHA for 0ab9b8d
lib/php/libsdk/SDK/Lock.php
@@ -66,6 +66,9 @@ protected function doLock(int $flags = LOCK_EX) : bool
66
} else {
67
$this->fd = fopen($this->fn, "wb");
68
}
69
+ if (false === $this->fd) {
70
+ throw new Exception("Failed to open lock under '$this->fn'");
71
+ }
72
$this->locked = flock($this->fd, $flags, $this->wouldBlock);
73
return $this->locked;
74
}/*}}}*/
0 commit comments