Fixes for non-unicode binary log output. Issue #116.
This commit is contained in:
parent
3abe248080
commit
a4cbd1b7ec
|
@ -102,6 +102,9 @@ class CommandExecutor implements CommandExecutorInterface
|
|||
$status = proc_close($process);
|
||||
}
|
||||
|
||||
mb_substitute_character(ord('?'));
|
||||
|
||||
$this->lastOutput = mb_convert_encoding($this->lastOutput, 'utf8', 'utf8');
|
||||
$this->lastOutput = array_filter(explode(PHP_EOL, $this->lastOutput));
|
||||
|
||||
$shouldOutput = ($this->logExecOutput && ($this->verbose || $status != 0));
|
||||
|
|
Loading…
Reference in a new issue