From 6bbd35f057746dba2baad58465fca1a93302bf67 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 24 Sep 2021 18:32:52 +0200 Subject: [PATCH] Weird fix --- lib/IpcServer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/IpcServer.php b/lib/IpcServer.php index 77e1d97..3326d38 100644 --- a/lib/IpcServer.php +++ b/lib/IpcServer.php @@ -95,10 +95,11 @@ class IpcServer $errors[$type] = "could not connect to the FIFO socket: $error"; } else { $listenUri = $type === self::TYPE_TCP ? "tcp://127.0.0.1:0" : "unix://".$uri; + $errno = -1; + $errstr = 'no error'; try { $this->server = \stream_socket_server($listenUri, $errno, $errstr, \STREAM_SERVER_BIND | \STREAM_SERVER_LISTEN); } catch (\Throwable $e) { - $errno = -1; $errstr = "exception: $e"; } if ($this->server) {