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); }