Skip to content

Compilation issue on ppa:ondrej/php #97

@MichaelNino

Description

@MichaelNino

Hi,

I'm very excited about the possibilities for this extension!!! :-)

Describe the bug

Should I build against staging branch? When I built against master it didn't complete.

Steps to reproduce

Followed installation instructions in README for staging branch

Expected behavior

php examples/simple.php didn't run

Actual behavior

/home/michael/php/php-ext-wasm# php examples/simple.php
PHP Warning:  Use of undefined constant WASM_TYPE_I32 - assumed 'WASM_TYPE_I32' (this will throw an Error in a future version of PHP) in /home/michael/php/php-ext-wasm/lib/Prelude.php on line 7
PHP Warning:  Use of undefined constant WASM_TYPE_I64 - assumed 'WASM_TYPE_I64' (this will throw an Error in a future version of PHP) in /home/michael/php/php-ext-wasm/lib/Prelude.php on line 8
PHP Warning:  Use of undefined constant WASM_TYPE_F32 - assumed 'WASM_TYPE_F32' (this will throw an Error in a future version of PHP) in /home/michael/php/php-ext-wasm/lib/Prelude.php on line 9
PHP Warning:  Use of undefined constant WASM_TYPE_F64 - assumed 'WASM_TYPE_F64' (this will throw an Error in a future version of PHP) in /home/michael/php/php-ext-wasm/lib/Prelude.php on line 10
PHP Fatal error:  Uncaught Error: Call to undefined function Wasm\wasm_fetch_bytes() in /home/michael/php/php-ext-wasm/lib/Instance.php:75
Stack trace:
#0 /home/michael/php/php-ext-wasm/examples/simple.php(7): Wasm\Instance->__construct('/home/michael/p...')
#1 {main}
  thrown in /home/michael/php/php-ext-wasm/lib/Instance.php on line 75

Metadata

Metadata

Assignees

Labels

🐞 bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions