ZTS support on Alpine is broken
Description
see https://github.com/docker-library/php/pull/1076, the issue is described at https://github.com/docker-library/php/pull/1076#issuecomment-733965227
I expect all bundled exts to be ZTS compatible on every linux platform, incl. Alpine.
PHP Version
8.0, 8.1, probably also master
I think we need to enable the static TSRM cache:
ext/pdo/config.m4 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ext/pdo/config.m4 b/ext/pdo/config.m4
index 9b9a3e36df..63a2f7ed0f 100644
--- a/ext/pdo/config.m4
+++ b/ext/pdo/config.m4
@@ -9,7 +9,7 @@ if test "$PHP_PDO" != "no"; then
dnl Make sure $PHP_PDO is 'yes' when it's not 'no' :)
PHP_PDO=yes
- PHP_NEW_EXTENSION(pdo, pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c, $ext_shared)
+ PHP_NEW_EXTENSION(pdo, pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c, $ext_shared,,-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
PHP_ADD_EXTENSION_DEP(pdo, spl, true)
PHP_INSTALL_HEADERS(ext/pdo, [php_pdo.h php_pdo_driver.h php_pdo_error.h])
Interestingly: https://github.com/php/php-src/blob/83d96d677907f85204202e79da5e0b40b88eb9dc/ext/pdo/config.w32#L6
Not sure, but as far as I know Alpine linux does not use the standard glibc ... Perhaps that's the problem there. https://wiki.alpinelinux.org/wiki/Running_glibc_programs
Because of these there are many programs that have not yet been ported natively to Alpine Linux and they requires to be run in a flatpak environment which is something different than running them natively ... Ex: thunderbird !
https://github.com/php/php-src/commit/804420b011308846f8427b274da7e28ab37534a6#r67951874
On Fri, 4 Mar 2022 at 11:07, Radu Ovidiu Ilies @.***> wrote:
Not sure, but as far as I know Alpine linux does not use the standard libc ... Perhaps that's the problem there.
— Reply to this email directly, view it on GitHub https://github.com/php/php-src/issues/8160#issuecomment-1059020303, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARB52TG2CR67UQ6X2BRIM3U6HOGJANCNFSM5PT6OF3A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message ID: @.***>
confirm! php:8.2-zts-alpine - craches with "segmentation fault core dumped"