Skip to content

Commit

Permalink
Add supressing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ben221199 committed Dec 10, 2024
1 parent 835fafc commit 745401f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Connections/EPPTCPConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected function ensureConnection(): void{

public function close(): bool{
$this->ensureConnection();
return fclose($this->socket);
return @fclose($this->socket);
}

/**
Expand All @@ -61,7 +61,7 @@ public function isClosed(): bool{
public function open(): bool{
$host = $this->registry->getHost();
$hostname = parse_url($host,PHP_URL_SCHEME).'://'.parse_url($host,PHP_URL_HOST);
$this->socket = fsockopen($hostname,$this->registry->getPort(),$errCode,$errMsg,5);
$this->socket = @fsockopen($hostname,$this->registry->getPort(),$errCode,$errMsg,5);
return $this->socket!==false;
}

Expand Down

0 comments on commit 745401f

Please sign in to comment.