[PECL-CVS] [pecl-database-pdo_ibm] pdo-class-8.5: Oops, still need to call this with the new PDO interface

[email protected] (Calvin Buckley)
Newsgroups php.pecl.cvs
Message-ID <[email protected]>
Author: Calvin Buckley (NattyNarwhal)
Date: 2025-09-10T14:51:11-03:00

Commit: https://github.com/php/pecl-database-pdo_ibm/commit/339dfb5762a327ef8234eff721752b4eb07788eb
Raw diff: https://github.com/php/pecl-database-pdo_ibm/commit/339dfb5762a327ef8234eff721752b4eb07788eb.diff

Oops, still need to call this with the new PDO interface

Changed paths:
  M  pdo_ibm.c


Diff:

diff --git a/pdo_ibm.c b/pdo_ibm.c
index 394ff75..d0ee0d4 100644
--- a/pdo_ibm.c
+++ b/pdo_ibm.c
@@ -134,6 +134,10 @@ PHP_MINIT_FUNCTION(pdo_ibm)
 	REGISTER_INI_ENTRIES();
 #endif
 
+	if (FAILURE == php_pdo_register_driver(&pdo_ibm_driver)) {
+		return FAILURE;
+	}
+
 #ifndef PASE /* i5/OS no support trusted */
 	REGISTER_PDO_IBM_CLASS_CONST_LONG_DEPRECATED_ALIAS_85("ATTR_USE_TRUSTED_CONTEXT", (long) PDO_SQL_ATTR_USE_TRUSTED_CONTEXT);
 	REGISTER_PDO_IBM_CLASS_CONST_LONG_DEPRECATED_ALIAS_85("ATTR_TRUSTED_CONTEXT_USERID", (long) PDO_SQL_ATTR_TRUSTED_CONTEXT_USERID);
@@ -165,7 +169,6 @@ PHP_MINIT_FUNCTION(pdo_ibm)
 
 	return php_pdo_register_driver_specific_ce(&pdo_ibm_driver, pdo_ibm_ce);
 #else
-	php_pdo_register_driver(&pdo_ibm_driver);
 	return TRUE;
 #endif
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.