You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have set a stream context with the persistent constructor option to true then PHP throws the following error:
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: address
Filename: lib/Client.php
Line Number: 202
At this point $address is not defined because it is set within the if (!$persistent || ftell($this->socket) == 0) { statement starting at line 131 which cannot be reached.
A proposed fix would be to move line 202 ($this->logger->info("Client connected to {$address}");) into the if (!$persistent || ftell($this->socket) == 0) { statement.
The text was updated successfully, but these errors were encountered:
If you have set a stream context with the persistent constructor option to true then PHP throws the following error:
At this point $address is not defined because it is set within the
if (!$persistent || ftell($this->socket) == 0) {
statement starting at line 131 which cannot be reached.The client was created as follow:
A proposed fix would be to move line 202 (
$this->logger->info("Client connected to {$address}");
) into theif (!$persistent || ftell($this->socket) == 0) {
statement.The text was updated successfully, but these errors were encountered: