[pecl-database-pdo_ibm] fixup-20260903: use ZTS globals wrapper
| From: | Calvin Buckley | Date: | Thu, 03 Sep 2026 17:45:56 +0000 |
| Subject: | [pecl-database-pdo_ibm] fixup-20260903: use ZTS globals wrapper | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-28673@lists.php.net to get a copy of this message | ||
Author: Calvin Buckley (NattyNarwhal)
Date: 2026-09-03T13:45:05-03:00
Commit: https://github.com/php/pecl-database-pdo_ibm/commit/4b57ee9e482474cec8d137002508a5a0002bdeb7
Raw diff: https://github.com/php/pecl-database-pdo_ibm/commit/4b57ee9e482474cec8d137002508a5a0002bdeb7.diff
use ZTS globals wrapper
Changed paths:
M pdo_ibm.c
Diff:
diff --git a/pdo_ibm.c b/pdo_ibm.c
index d319bb3..9c327e0 100644
--- a/pdo_ibm.c
+++ b/pdo_ibm.c
@@ -96,14 +96,14 @@ PHP_INI_END()
*/
static void php_pdo_ibm_init_globals(zend_pdo_ibm_globals *pdo_ibm_globals)
{
- if (pdo_ibm_globals->i5_override_ccsid) {
+ if (PDO_IBM_G(i5_override_ccsid)) {
/* This routine should be called by the application prior
* to any other CLI routine to override the ascii ccsid
* being retrieved from the Qp2RunPase() routine. If this
* routine is called after any CLI routine is called in
* the process it will have no effect.
*/
- SQLOverrideCCSID400(pdo_ibm_globals->i5_override_ccsid);
+ SQLOverrideCCSID400(PDO_IBM_G(i5_override_ccsid));
}
}
/* }}} */