Issues

ZF-5958: Add option to specify different stream

Description

Included is a patch that allows this to output without causing progressbar and verbose data to be mixed.


$total = 20;
$progressBar = new Zend_ProgressBar(new Zend_ProgressBar_Adapter_Console(array('output'=>"php://stderr")), 0, $total);
for($i = 1; $i <= $total; ++$i) {
  printf("dumping verbose data\n");
  $progressBar->update($i);
  usleep(200000);
}
$progressBar->finish();

php test.php > output.log

Comments

Implemented with r14235. Will be included with 1.8.