[pecl-database-ibm_db2] master: Initial PHP 8.6 compatibility shims

From: Date: Mon, 06 Jul 2026 15:50:49 +0000
Subject: [pecl-database-ibm_db2] master: Initial PHP 8.6 compatibility shims
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-28631@lists.php.net to get a copy of this message
Author: Calvin Buckley (NattyNarwhal) Date: 2026-07-06T12:49:43-03:00 Commit: https://github.com/php/pecl-database-ibm_db2/commit/d6955a969b058b66ac7ccdbc5170b32c3c4d9e95 Raw diff: https://github.com/php/pecl-database-ibm_db2/commit/d6955a969b058b66ac7ccdbc5170b32c3c4d9e95.diff Initial PHP 8.6 compatibility shims Changed paths: M ibm_db2.c Diff: diff --git a/ibm_db2.c b/ibm_db2.c index 7130a04..54dc1bc 100644 --- a/ibm_db2.c +++ b/ibm_db2.c @@ -61,6 +61,10 @@ return #define ZEND_Z_TYPE_PP(entry) ZEND_Z_TYPE_P(*entry) +#if PHP_VERSION_ID >= 80600 +#define INI_STR(ini) zend_ini_string_literal(ini) +#endif + /* True global resources - no need for thread safety here */ static int le_conn_struct, le_stmt_struct, le_pconn_struct; @@ -3138,8 +3142,14 @@ PHP_FUNCTION(db2_bind_param) break; default: +#if PHP_VERSION_ID >= 80600 + /* UPGRADING.INTERNALS says this should throw after */ + zend_wrong_param_count(); + RETURN_THROWS(); +#else WRONG_PARAM_COUNT; RETURN_FALSE; +#endif } /* end Switch */

« previous php.pecl.cvs (#28631) next »