string $buffer:
public function write($buffer) {
if ($this->out) {
fwrite($this->out, $buffer);
if ($this->autoFlush) {
$this
->incrementalFlush();
}
}
else {
if (PHP_SAPI != 'cli') {
$buffer = htmlspecialchars($buffer);
}
print $buffer;
if ($this->autoFlush) {
$this
->incrementalFlush();
}
}
}