shellwrap
shellwrap copied to clipboard
Incorrect __toString behavior in exception
https://github.com/MrRio/shellwrap/blob/0.4.1/src/MrRio/ShellWrap.php#L41
Causes Warning: MrRio\ShellWrapException::__toString() must return a string in Unknown on line 0
Do you have some example code that produces this error?
$sh = new sh();
echo $sh('bin/tool info');
PHP Warning: MrRio\ShellWrapException::__toString() must return a string in Unknown on line 0
PHP Fatal error: Uncaught thrown in app/vendor/mrrio/shellwrap/src/MrRio/ShellWrap.php on line 180
Hey MrRio, I have the same issues as Mihailoff on my (windows apache mod_php 5.4) dev machine. On any script (my own and your examples) I try your library I get the following:
Warning: MrRio\ShellWrapException::__toString() must return a string in Unknown on line 0
Fatal error: Uncaught thrown in C:\www\building-blocks\cmd\shellwrap-master\shellwrap-master\src\MrRio\ShellWrap.php on line 180
Both both the browser and cli. What do you think?
Can you try again with the latest version?
Ok, I will.