These images are worth a thousand words; red is the code that produces the corresponding orange output:
These numbers... and I'm not in the mood to dive into the ZF2 source tonight ;)
Moreover, the workaround seems to be two consecutive write()s (or one long write()). I see it happening pretty much everywhere where the strings are too long, although it doesn't occur often enough for me to replace all of my writeLine()s with consecutive write()s.
Latest Debian Linux using the default console adapter shipped w/ ZF2.
Fixed. After merging it will work as expected, echoing the text with an EOL, unless the text matches console width - in that case no EOL will be sent to prevent empty lines.
Please do not close until the PR is merged
Sorry about that, meant to comment again.
Perhaps I'm simply doing it wrong, but after testing the patch locally I'm still seeing issues. Namely, newline characters seem to be getting eaten when executing code similar to the following: $console->writeLine(print_r($somearr, true));.
Thanks. I'll check it.
Merge branch 'hotfix/4055'
Merge pull request zendframework/zendframework#4055 from Thinkscape/h…
Fix zendframework/zendframework#4051 console::writeLine()