Mine
public text v1 · immutablewhile (!feof($thisconnection)){
$line = stream_get_contents($this->connection);
if (eregi('</gipsy>',$line)){
// is a completed block of xml
$buf .= $line;
return $buf;
}
$buf .= $line;
if (eregi('<?xml version="1.0" encoding="utf-8"?>',$line)){
// is a new block of xml
$buf = $line;
$return $buf;
}
}