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.33k stars 233 forks source link

Linux FFI Extension #535

Closed KingBes closed 2 months ago

KingBes commented 2 months 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 2 months ago

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