Closed
Description
In the Windows environment it appears that the stdOut is preceded by \x0C
(ASCII Form Feed character).
This is a problem when the expected stdOut is a JSON response string which will not parse using json_decode() because of the "invisible" form feed character.
The PHP trim() function does not strip these characters by default so the suggested change would be to replace the getOutput() function as follows
public function getOutput($trim = true)
{
return $trim ? trim($this->_stdOut, " \t\n\r\0\x0B\x0C") : $this->_stdOut;
}
And perhaps extend this change to getError() and getStdErr() as well.
Metadata
Metadata
Assignees
Labels
No labels