Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FFI extension #702

Open
drigolin opened this issue Jul 17, 2024 · 2 comments
Open

Add FFI extension #702

drigolin opened this issue Jul 17, 2024 · 2 comments

Comments

@drigolin
Copy link

FFI is very useful when using some PHP libraries like vips.

@jingjingxyk
Copy link
Contributor

jingjingxyk commented Jul 21, 2024

FFI 扩展已经添加到实验分支,用实验分支自己测试。 https://github.com/swoole/swoole-cli/pull/704/files

The FFI extension has been added, please use the experimental branch to test it

git clone -b experiment https://github.com/swoole/swoole-cli.git

cd swoole-cli

php prepare.php +ffi


使用快速构建脚本
Use Quick Build Script

cp -f build-release-example.sh build-release-php.sh 

# edit this file
vi build-release-php.sh

OPTIONS="${OPTIONS} +ffi 

bash build-release-php.sh

image

@KingBes
Copy link

KingBes commented Sep 3, 2024

如果没有ffi,那么会想办法做一个平替版吗?还有静态编译后linux用不了ffi的情况

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants