Import #30 "wasi_snapshot_preview1" "sock_accept": function import requires a callable
Hi. I'm having trouble executing PHP WASI under Cloudflare worker and can't understand what is actually wrong. It is always fails with the
Import #30 "wasi_snapshot_preview1" "sock_accept": function import requires a callable
. Is it some missing support for a standard on Cloudflare end or it needs to be compiled in special way? I would be grateful for any hints on the matter.
What I'm trying to achieve is to run php-cgi WASI build from https://github.com/vmware-labs/webassembly-language-runtimes/tree/main/php/v8.2.6
When I try to run wasmtime with the same binary it works without any issues wasmtime php-cgi-8.2.6.wasm -i
worker.js
wrangler.toml
GitHub
webassembly-language-runtimes/php/v8.2.6 at main · vmware-labs/weba...
Wasm Language Runtimes provides popular language runtimes (Ruby, Python, …) precompiled to WebAssembly that are tested for compatibility and kept up to date when new versions of upstream languages ...
1 Reply
sock_accept
isn't listed but sock_recv
, sock_send
and sock_shutdown
are all not implemented in workers-wasi
That project hasn't had any updates in ~2 years