crazywhalecc / static-php-cli

Build standalone PHP binary on Linux, macOS, FreeBSD, Windows, with PHP project together, with popular extensions included.
https://static-php.dev
MIT License
1.3k stars 227 forks source link

Linux FFI Extension #535

Closed KingBes closed 1 month ago

KingBes commented 1 month ago

Because of the limitations of the Linux system, it is possible to successfully compile the ffi extension, but it cannot be used to load other so extensions. The prerequisite for Linux to load so extensions is non-static compilation, but dynamic compilation conflicts with the purpose of this project.

This means that the composer package that requires ffi extension is not available, is there any alternative method?

crazywhalecc commented 1 month ago

See: https://github.com/crazywhalecc/static-php-cli/issues/376#issuecomment-2081321960