You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@StyleShit Not at the moment. PHP may make a network call or spawn a new process via popen() which, in JS, is an async operation. php.run() actually used to be synchronous before adding support for network and subprocesses. Technically, it is possible to expose a synchronous code execution handler with a limited set of features – we just don't have one today.
Uh oh!
There was an error while loading. Please reload this page.
Hey,
I'm developing a tool in TS that needs to run PHP code synchronously.
Is there a way to call
php-wasm
synchronously in Node environment?I know it's not the best idea and that it might block the main thread, but the system I'm running in requires me to run the code synchronously.
Thanks! 🙏
The text was updated successfully, but these errors were encountered: