public function openOutput() { if (null === $this->_stdout) { return STDOUT; } else { $this->_stdout = fopen($this->_stdout, 'wb'); return $this->_stdout; } }