seanmorris / php-wasm

PHP in Browser, powered by WebAssembly.
https://seanmorris.github.io/php-wasm/
Apache License 2.0
606 stars 32 forks source link

Can we run the wasm with wasmer? #24

Open NitroCao opened 1 year ago

NitroCao commented 1 year ago

I tried to run the wasm php-shell.wasm with wasmer (https://github.com/wasmerio/wasmer) but it returned with the following error:

$ wasmer run dist/php-shell.wasm
thread '<unnamed>' panicked at 'index out of bounds: the len is 2097152 but the index is 2097152', /github/home/.cache/Homebrew/cargo_cache/registry/src/github.com-1ecc6299db9ec823/cranelift-codegen-0.86.1/src/machinst/lower.rs:461:34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Could you give a brief introduction on how to run it with wasmer? Thanks in advance.