Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling newer PHP version #65

Open
leongrdic opened this issue May 23, 2022 · 2 comments
Open

Compiling newer PHP version #65

leongrdic opened this issue May 23, 2022 · 2 comments

Comments

@leongrdic
Copy link

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
Copy link

adamziel commented Dec 27, 2022

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
Copy link
Contributor

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants