Boris – A tiny REPL for PHP
github.com
github.com
Am I missing something here?
Laravel 5 is now using PsySH.
Seriously, though, if you're running on Windows you should report fatal errors that make PsySH crash as well. It works around a lot of them, but there will always be more, so let us know.
I dug into his code to see how he accomplished this:
* EvalWorker is responsible for evaluating PHP expressions in forked processes *
Which is a pretty cool setup. The whole thing is nicely architected and I'm looking forward to being able to use it!I looked at his source and it's not clear to me how he's also not having the same problem; if the statement is run in a fork then how do you propagate the newly created resources back up to the master?
It's impressive though and works well.