php-ffi-go-example:通过FFI从PHP调用GO函数

时间:2021-05-11 06:33:37
【文件属性】:
文件名称:php-ffi-go-example:通过FFI从PHP调用GO函数
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-11 06:33:37
PHP PHP FFI GO示例 刚刚尝试通过FFI从PHP调用GO函数。 怎么跑? 确保在php.ini具有PHP 7.4和ffi.enable=true 。 克隆此存储库。 git clone https://github.com/eislambey/php-ffi-go-example.git 编译libutil.so go build -o libutil.so -buildmode=c-shared util.go 跑步 php example.php php http_client_example.php 参考
【文件预览】:
php-ffi-go-example-master
----example.php(163B)
----LICENSE(1KB)
----http_client_example.php(733B)
----.gitignore(28B)
----README.md(715B)
----util.go(530B)

网友评论