[php-src] Issue #8160: ZTS support on Alpine is broken
| From: | cmb69 | Date: | Tue, 01 Mar 2022 13:42:08 +0000 |
| Subject: | [php-src] Issue #8160: ZTS support on Alpine is broken | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-240091@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8160
Comment Author: cmb69
I think we need to enable the static TSRM cache:
````.diff
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