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

How to add ioncube extension #507

Closed louishot closed 3 months ago

louishot commented 3 months ago

I'd like to use ioncube Protecting source code

crazywhalecc commented 3 months ago

ioncube is a closed source project, so we cannot compile it.

louishot commented 3 months ago

ioncube is a closed source project, so we cannot compile it.

  • Linux static binary does not support .so file, it's not supported.
  • macOS and windows static php binary can use .so,.dll file with external php.ini, you can download and add external extension to your static php.

All right so Linux static binary cannot to load .so file as extension?

crazywhalecc commented 3 months ago

All right so Linux static binary cannot to load .so file as extension?

@louishot No. See: https://static-php.dev/en/faq/#can-statically-compiled-php-install-extensions