Skip to content
Advertisement

Tag: rust

PHP FFI – return array rom Rust function back to PHP

I need to return few values from rust function. Tried to declare function which returns an array But got an error: PHP Fatal error: Uncaught FFIParserException: function returning array is not allowed at line 1 in /array.php:3 It seems PHP FFI can’t work with arrays directly. So I found another solution. I created C-array from PHP, then passed pointer to

Advertisement