Change DEBUG to a static const
This commit is contained in:
@@ -362,7 +362,7 @@ final class Binkp extends BaseProtocol
|
||||
} catch (SocketException $e) {
|
||||
if ($e->getCode() === 11) {
|
||||
// @todo We maybe should count these and abort if there are too many?
|
||||
if ($this->DEBUG)
|
||||
if (static::DEBUG)
|
||||
Log::debug(sprintf('%s:- Got a socket EAGAIN',self::LOGKEY));
|
||||
|
||||
return TRUE;
|
||||
@@ -424,7 +424,7 @@ final class Binkp extends BaseProtocol
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if ($this->DEBUG)
|
||||
if (static::DEBUG)
|
||||
Log::debug(sprintf('%s: - binkp_recv BUFFER [%d]',self::LOGKEY,strlen($this->rx_buf)));
|
||||
|
||||
$msg = ord(substr($this->rx_buf,0,1));
|
||||
@@ -534,7 +534,7 @@ final class Binkp extends BaseProtocol
|
||||
$rc = TRUE;
|
||||
}
|
||||
|
||||
if ($this->DEBUG)
|
||||
if (static::DEBUG)
|
||||
Log::debug(sprintf('%s:= binkp_recv [%d]',self::LOGKEY,$rc));
|
||||
|
||||
return $rc;
|
||||
|
Reference in New Issue
Block a user