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


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");

php test.php > output.log


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.


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

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