Sean Morris
Sean Morris
Try it with the new event listener API.
I've got a branch that solves this. https://seanmorris.github.io/php-wasm/?code=%253C%253Fphp%250A%250Aprint%2520%2522Newlines%255Cn%255Cn%2522%253B%250Aprint%2520%27Seem%27%2520.%2520PHP_EOL%253B%250Aprint%2520%27to%2520be%2520working%2520now.%27%250A%2520%2520%2520%2520.%2520PHP_EOL%250A%2520%2520%2520%2520.%2520PHP_EOL%250A%2520%2520%2520%2520.%2520PHP_EOL%253B%250A%2520%2520%2520%2520%250Aprint%2520%27done.%27%253B&persist=0
> Do you have any experience submitting packages to packagist.org? Its already on npm under php-wasm. I don't think it makes sense to put this on packagist as its a...
Also my fork implements PHP script tags: https://github.com/seanmorris/php-wasm
My changes have been pulled into the main branch.
Looks like we need to get this into a webworker stat!
I've got something in VERY EARLY ALPHA https://seanmorris.github.io/php-wasm/?code=%253C%253Fphp%250A%250Avrzno_timeout%281000%252C%2520function%28%29%257B%250A%2520%2520%2520%2520%250A%2520%2520%2520%2520print%2520%2522Second%21%255Cn%2522%253B%250A%2520%2520%2520%2520%250A%257D%29%253B%250A%250Aprint%2520%2522First%21%2522%253B%250A&persist=0&single-expression=0
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...
I'm working on that!
I think the UI is locking while PHP executes. If I can get this into a web worker I think we should be able to get it running async.