-
Notifications
You must be signed in to change notification settings - Fork 7.9k
BUG : Compiling opcache extensions statically into ZTS PHP , JIT bug #15074
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
Comments
Well, there might be reason why "OPcache can only be compiled as a shared extension" according to the documentation. Anyhow, did that work with previous versions of PHP 8.2? |
Test PHP version list PHP_VERSION=8.2.21 They have similar compilation errors
|
Thank you! So this is actually a feature request (to be able to compile OPcache statically), but not a report about a regression. |
If PHP does not enable ZTS, opcache extension static compilation can be successfully compiled https://github.com/jingjingxyk/swoole-cli/actions/runs/10062434474/ |
The problem seems to be that This does not affect glibc builds, as in this case we use a different relocation in |
Uh oh!
There was an error while loading. Please reload this page.
Compile target : Statically compiled PHP enable Zend Thread Safe and opcache extension
environment :
OS: alpine
OS-Version: 3.19
CPU ARCH : x86_64
The following code:
vi build-static-php.sh
vi opcache-static-compile-patch.sh
Compile PHP into Static Binary
Resulted in this output:
PHP Version
8.2.21
Operating System
alpine 3.18
The text was updated successfully, but these errors were encountered: