From 8623c2376356b509aa3b21e4686f18b7f621bff9 Mon Sep 17 00:00:00 2001 From: Pinga <121483313+getpinga@users.noreply.github.com> Date: Wed, 1 Mar 2023 16:23:26 +0200 Subject: [PATCH] Fixed a stupid bug --- epp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epp.php b/epp.php index cb0b0ec..21386a3 100644 --- a/epp.php +++ b/epp.php @@ -1304,7 +1304,7 @@ public function write($xml) if (fwrite($this->socket, pack('N', (strlen($xml) + 4)) . $xml) === false) { throw new exception('Error writing to the connection.'); } - $r = simplexml_load_string($this->readResponse()); + $r = simplexml_load_string($this->read()); if (isset($r->response) && $r->response->result->attributes()->code >= 2000) { throw new exception($r->response->result->msg); }