wasmerio / wasmer-php

🐘🕸️ WebAssembly runtime for PHP
https://wasmerio.github.io/wasmer-php/wasm/
MIT License
1.01k stars 42 forks source link

Waht is the mini PHP version requirement? #118

Closed jmjoy closed 4 years ago

jmjoy commented 4 years ago

Summary

I am trying to build the PHP extension of PHP version:

PHP 7.1.16-1+b1 (cli) (built: May 12 2018 08:31:35) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.1.16-1+b1, Copyright (c) 1999-2018, by Zend Technologies
    with Xdebug v2.6.0, Copyright (c) 2002-2018, by Derick Rethans

on Linux.

But some build errors occur:

/tmp/php-ext-wasm-0.5.0/src/wasm.cc:123:132: error: macro "ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX" requires 6 arguments, but only 5 given
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_wasmarraybuffer_get_byte_length, ZEND_RETURN_VALUE, ARITY(0), IS_LONG, NOT_NULLABLE)

/tmp/php-ext-wasm-0.5.0/src/wasm.cc:123:1: error: ‘ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX’ does not name a type
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_wasmarraybuffer_get_byte_length, ZEND_RETURN_VALUE, ARITY(0), IS_LONG, NOT_NULLABLE
Hywan commented 4 years ago

Tested against PHP 7.2. We could update to support PHP 7.1, but since it has reached its end of life, I don't see the point :-).

jmjoy commented 4 years ago

@Hywan Thanks.