Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Providing stub STDOUT/STDERR resources #29

Open
TysonAndre opened this issue Jul 23, 2019 · 1 comment
Open

Providing stub STDOUT/STDERR resources #29

TysonAndre opened this issue Jul 23, 2019 · 1 comment

Comments

@TysonAndre
Copy link

Is that something you'd be interested in a PR for? php embed differs from a regular CLI in that it doesn't provide these (but echo works)

I have this working in a fork - https://github.com/TysonAndre/phan-demo/blob/79d6df9950789ebf54cf3c798f772df8a76e887e/pib_eval.c#L16-L54

Alternately, a regular define+fopen in pure php before the script in question may work more reliably.

@seanmorris
Copy link
Contributor

seanmorris commented Aug 22, 2020

This looks pretty goddamn useful, I've got another branch in the works at https://github.com/seanmorris/php-wasm, its got persistent memory and a way to call out to JS!

How did you get STDERR working? Thats been driving me insane.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants