pib icon indicating copy to clipboard operation
pib copied to clipboard

Compiling newer PHP version

Open leongrdic opened this issue 3 years ago • 2 comments

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!

leongrdic avatar May 23 '22 12:05 leongrdic

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.

adamziel avatar Dec 27 '22 14:12 adamziel

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/

seanmorris avatar Mar 29 '23 14:03 seanmorris