Skip to content

Provide PHP normal wasm build #121

@liudonghua123

Description

@liudonghua123

Is your feature request related to a problem? Please describe.

Hi, I tried the wasm build of python, ruby and php with my wasmer runtime, python and ruby are good, but the PHP only provide wasmedge version which could not run under the latest wasmer v4.2.3.

> wasmer python-3.11.4.wasm --dir . hello.py
Hello World

> wasmer ruby-3.2.2.wasm --dir . hello.rb
Hello World

> wasmer php-cgi-8.2.6.wasm --dir . hello.php
Status: 404 Not Found
X-Powered-By: PHP/8.2.6
Content-type: text/html; charset=UTF-8

No input file specified.

> wasmer php-8.2.6-wasmedge.wasm --dir . hello.php
error: Instantiation failed
╰─▶ 1: Error while importing "wasi_snapshot_preview1"."sock_open": unknown import. Expected Function(FunctionType { params: [I32, I32, I32], results: [I32] })

> wasmedge.exe --dir . php-8.2.6-wasmedge.wasm hello.php
Hello World
> 

Can we build the normal or general PHP wasm?

Describe the solution you'd like

Build normal or general PHP wasm like python and ruby.

Describe alternatives you've considered

N.A.

Additional context

N.A.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions