wasmerio / wasmer-php

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

feat(extension) Use the new parameters API #9

Closed Hywan closed 5 years ago

Hywan commented 5 years ago

This patch replaces the old parameters API by the new one, as presented in https://phpinternals.net/categories/zend_parameter_parsing.

Bonus: All functions return a TypeError when the types don't match.

cc @Ocramius