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
hello, first of all, I'm sorry because this may not be an actual issue and it's kinda offtopic.
I've been trying to compile PHP 8.1 for WASM for a few weeks now and haven't had much luck. I recently came across this repo and noticed you managed to do it.
I've cloned your repo locally and tried to do the compile myself, and when I try to run code in the demo app it works but fails for more complex code snippets (like including the phan phar or its autoload.php, or a deeply recursive function) - those same code snippets work when I just download your compiled php.wasm, php.data and php.js from https://phan.github.io/demo/ and load them locally or even in the online demo app.
The error I'm getting when trying to run the complex code (sometimes in the output section in page and sometimes in console):
Unexpected error reloading php: RangeError: Maximum call stack size exceeded
I then proceeded to modify the build.sh - get rid of most extensions and change the compile flags in attempts to get it to work but with no success and I've done over a hundred different compiles at this point.
If anyone's interested to help me out, here are the important parts of my build.sh:
hello, first of all, I'm sorry because this may not be an actual issue and it's kinda offtopic.
I've been trying to compile PHP 8.1 for WASM for a few weeks now and haven't had much luck. I recently came across this repo and noticed you managed to do it.
I've cloned your repo locally and tried to do the compile myself, and when I try to run code in the demo app it works but fails for more complex code snippets (like including the phan phar or its autoload.php, or a deeply recursive function) - those same code snippets work when I just download your compiled php.wasm, php.data and php.js from https://phan.github.io/demo/ and load them locally or even in the online demo app.
The error I'm getting when trying to run the complex code (sometimes in the output section in page and sometimes in console):
I then proceeded to modify the build.sh - get rid of most extensions and change the compile flags in attempts to get it to work but with no success and I've done over a hundred different compiles at this point.
If anyone's interested to help me out, here are the important parts of my build.sh:
I'm running Emscripten SDK version 1.39.18 with the following command:
thanks very much in advance to anyone who's willing to help regarding this.
The text was updated successfully, but these errors were encountered: