Zend Framework

Add option to specify different stream

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: 1.7.6
  • Fix Version/s: 1.8.0
  • Component/s: Zend_ProgressBar
  • Labels:
    None

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

Activity

Hide
Ben Scholzen added a comment -

Implemented with r14235. Will be included with 1.8.

Show
Ben Scholzen added a comment - Implemented with r14235. Will be included with 1.8.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: