Esempio n. 1
0
 /**
  * Creates the stream.
  */
 public function __construct()
 {
     // From \Symfony\Component\Console\Output\ConsoleOutput
     //
     // Returns true if current environment supports writing console output
     // to STDOUT.
     //
     // IBM iSeries (OS400) exhibits character-encoding issues when writing
     // to STDOUT and doesn't properly convert ASCII to EBCDIC, resulting in
     // garbage output.
     $stream = 'OS400' === php_uname('s') ? 'php://output' : 'php://stdout';
     parent::__construct(fopen($stream, 'w'));
 }
Esempio n. 2
0
 /**
  * Creates the stream.
  */
 public function __construct()
 {
     parent::__construct(fopen('php://stderr', 'w'));
 }