oraoto / pib

PHP in Browser (powered by WebAssembly)
https://oraoto.github.io/pib/
Apache License 2.0
956 stars 112 forks source link

Compiling newer PHP version #65

Open leongrdic opened 2 years ago

leongrdic commented 2 years ago

are there any plans to update the PHP version, for example 8 or 8.1.

I've tried to compile PHP 8.1.6 with latest Emscripten and am getting the following error:

shared:ERROR: /src/php-8.1.6/Zend/asm/make_x86_64_sysv_elf_gas.S: Input file has an unknown suffix, don't know what to do with it!
Makefile:893: recipe for target 'Zend/asm/make_x86_64_sysv_elf_gas.lo' failed
make: *** [Zend/asm/make_x86_64_sysv_elf_gas.lo] Error 1

could anyone help with this? I'll gladly invest some time into updating this project, I really like the concept of PHP WASM. Thanks!

adamziel commented 1 year ago

FYI WordPress Playground project runs on WASM-ized PHP 8.0 and is on track to support 8.1 and 8.2 as well: https://github.com/WordPress/wordpress-playground/blob/trunk/src/php-wasm/wasm/Dockerfile

Edit: PHP 8.1 and 8.2 is now supported! There's also an npm package with a handy client library.

seanmorris commented 1 year ago

are there any plans to update the PHP version, for example 8 or 8.1.

I've tried to compile PHP 8.1.6 with latest Emscripten and am getting the following error:

shared:ERROR: /src/php-8.1.6/Zend/asm/make_x86_64_sysv_elf_gas.S: Input file has an unknown suffix, don't know what to do with it!
Makefile:893: recipe for target 'Zend/asm/make_x86_64_sysv_elf_gas.lo' failed
make: *** [Zend/asm/make_x86_64_sysv_elf_gas.lo] Error 1

could anyone help with this? I'll gladly invest some time into updating this project, I really like the concept of PHP WASM. Thanks!

I've got PHP 8.2.4 running in my fork. https://github.com/seanmorris/php-wasm/