public function write($content)
{
$this->writeLog("Writing: " . strlen($content) . " + 4 bytes", "WRITE");
$content = $this->addInteger($content);
if (!is_resource($this->connection)) {
throw new eppException('Writing while no connection is made is not supported.');
}
putenv('SURPRESS_ERROR_HANDLER=1');
#ob_flush();
if (fwrite($this->connection, $content)) {
//fpassthru($this->connection);
putenv('SURPRESS_ERROR_HANDLER=0');
return true;
}
putenv('SURPRESS_ERROR_HANDLER=0');
return false;
}