You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Output is done to a stream, STDOUT by default, but can be set to an arbitrary stream.
Sometimes this is not flexible enough. For example, I want to write to 2 streams simultaneously. There may also be situations where a stream is not supported by a particular output method.
This could be solved by a custom stream wrapper or filter, but a callback for output would be much simpler. Would it be possible to support that?
Example code
// Example for new callback option. Overrides default stream output.$options = newZipStream\Option\Archive();
$options->setOutputCallback(function ($data) {
write_output($data);
});
The text was updated successfully, but these errors were encountered:
Description of the problem
Output is done to a stream, STDOUT by default, but can be set to an arbitrary stream.
Sometimes this is not flexible enough. For example, I want to write to 2 streams simultaneously. There may also be situations where a stream is not supported by a particular output method.
This could be solved by a custom stream wrapper or filter, but a callback for output would be much simpler. Would it be possible to support that?
Example code
The text was updated successfully, but these errors were encountered: