mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-02 06:58:49 +02:00
⬆️ N°4770 Update to latest Symfony 3.4
This commit is contained in:
@@ -15,7 +15,7 @@ use Symfony\Component\Filesystem\Exception\IOException;
|
||||
use Symfony\Component\Lock\Store\FlockStore;
|
||||
use Symfony\Component\Lock\Store\SemaphoreStore;
|
||||
|
||||
@trigger_error(sprintf('The %s class is deprecated since Symfony 3.4 and will be removed in 4.0. Use %s or %s instead.', LockHandler::class, SemaphoreStore::class, FlockStore::class), E_USER_DEPRECATED);
|
||||
@trigger_error(sprintf('The %s class is deprecated since Symfony 3.4 and will be removed in 4.0. Use %s or %s instead.', LockHandler::class, SemaphoreStore::class, FlockStore::class), \E_USER_DEPRECATED);
|
||||
|
||||
/**
|
||||
* LockHandler class provides a simple abstraction to lock anything by means of
|
||||
@@ -97,7 +97,7 @@ class LockHandler
|
||||
|
||||
// On Windows, even if PHP doc says the contrary, LOCK_NB works, see
|
||||
// https://bugs.php.net/54129
|
||||
if (!flock($this->handle, LOCK_EX | ($blocking ? 0 : LOCK_NB))) {
|
||||
if (!flock($this->handle, \LOCK_EX | ($blocking ? 0 : \LOCK_NB))) {
|
||||
fclose($this->handle);
|
||||
$this->handle = null;
|
||||
|
||||
@@ -113,7 +113,7 @@ class LockHandler
|
||||
public function release()
|
||||
{
|
||||
if ($this->handle) {
|
||||
flock($this->handle, LOCK_UN | LOCK_NB);
|
||||
flock($this->handle, \LOCK_UN | \LOCK_NB);
|
||||
fclose($this->handle);
|
||||
$this->handle = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user