[PECL-CVS] [pecl-database-pdo_ibm] pdo-class-8.5: Use driver specific class on 8.4 as well

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

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

Use driver specific class on 8.4 as well

Changed paths:
  M  pdo_ibm.c


Diff:

diff --git a/pdo_ibm.c b/pdo_ibm.c
index d0ee0d4..8a2870c 100644
--- a/pdo_ibm.c
+++ b/pdo_ibm.c
@@ -30,8 +30,8 @@
 #include "php_pdo_ibm.h"
 #include "php_pdo_ibm_int.h"
 
-/* The class constants are only useful on 8,4/8.5+ */
-#if PHP_VERSION_ID >= 80500
+/* The class constants are only useful on 8.4+ */
+#if PHP_VERSION_ID >= 80400
 #include "pdo_ibm_arginfo.h"
 #endif
 
@@ -163,7 +163,7 @@ PHP_MINIT_FUNCTION(pdo_ibm)
 	REGISTER_PDO_IBM_CLASS_CONST_LONG_DEPRECATED_ALIAS_85("ATTR_INFO_APPLNAME", (long) PDO_SQL_ATTR_INFO_APPLNAME);
 	REGISTER_PDO_IBM_CLASS_CONST_LONG_DEPRECATED_ALIAS_85("ATTR_INFO_WRKSTNNAME", (long) PDO_SQL_ATTR_INFO_WRKSTNNAME);
 
-#if PHP_VERSION_ID >= 80500
+#if PHP_VERSION_ID >= 80400
 	pdo_ibm_ce = register_class_Pdo_Ibm(pdo_dbh_ce);
 	pdo_ibm_ce->create_object = pdo_dbh_new;
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.