Issues

ZF-5958: Add option to specify different stream

Issue Type: Improvement Created: 2009-03-06T10:55:12.000+0000 Last Updated: 2009-03-06T12:12:38.000+0000 Status: Resolved Fix version(s): - 1.8.0 (30/Apr/09)

Reporter: Michael Rehbein (tech13) Assignee: Ben Scholzen (dasprid) Tags: - Zend_ProgressBar

Related issues: Attachments: - Console.patch

Description

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

<pre class="highlight">
$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

Posted by Ben Scholzen (dasprid) on 2009-03-06T12:12:37.000+0000

Implemented with r14235. Will be included with 1.8.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts