You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm confused, what OS is it being ran on? It says -all-static but GccNativeToolchain, which shouldn't even be possible.
Seems Alpine Linux: It contains cd '/app/source/attr' && cat '/app/src/globals/patch/attr_alpine_gethostname.patch' | patch -p1 which is musl distro only.
Main issue should be missing php-src/ext/pdo_sqlsrv/shared/ include dirs when building statically.
The grpc extension's config.m4 calls PHP_ADD_INCLUDE(PHP_EXT_SRCDIR()/src/php/ext/grpc), which adds its directory to the global include path for all extension compilations. That directory contains version.h with the include guard #ifndef VERSION_H. The same guard used by pdo_sqlsrv's shared/version.h. Since grpc's path appears earlier in the compiler's -I list, its version.h is picked up first, and the guard prevents pdo_sqlsrv's version.h from loading.
Activity
henderkes commentedon Apr 5, 2026
The ci run shows no debug logs so can't say. Please enable --debug or upload the shell log after failure.
nujz commentedon Apr 5, 2026
https://github.com/nujz/static-php-cli/actions/runs/23997718452
logs
henderkes commentedon Apr 6, 2026
I'm confused, what OS is it being ran on? It says -all-static but GccNativeToolchain, which shouldn't even be possible.
crazywhalecc commentedon Apr 6, 2026
Seems Alpine Linux: It contains
cd '/app/source/attr' && cat '/app/src/globals/patch/attr_alpine_gethostname.patch' | patch -p1which is musl distro only.Main issue should be missing
php-src/ext/pdo_sqlsrv/shared/include dirs when building statically.crazywhalecc commentedon Apr 10, 2026
The grpc extension's config.m4 calls
PHP_ADD_INCLUDE(PHP_EXT_SRCDIR()/src/php/ext/grpc), which adds its directory to the global include path for all extension compilations. That directory containsversion.hwith the include guard#ifndef VERSION_H. The same guard used by pdo_sqlsrv'sshared/version.h. Since grpc's path appears earlier in the compiler's -I list, its version.h is picked up first, and the guard prevents pdo_sqlsrv's version.h from loading.Fix #1083