From 6896f74846e904a4555f0400c0c8608f5d56a6e0 Mon Sep 17 00:00:00 2001 From: Jordi Kroon Date: Thu, 21 May 2026 21:56:41 +0200 Subject: [PATCH 1/2] Add Odbc\Connection and Odbc\Result classes --- reference/uodbc/book.xml | 16 ++++---- reference/uodbc/odbc.connection.xml | 57 +++++++++++++++++++++++++++++ reference/uodbc/odbc.result.xml | 57 +++++++++++++++++++++++++++++ reference/uodbc/versions.xml | 5 +++ 4 files changed, 128 insertions(+), 7 deletions(-) create mode 100644 reference/uodbc/odbc.connection.xml create mode 100644 reference/uodbc/odbc.result.xml diff --git a/reference/uodbc/book.xml b/reference/uodbc/book.xml index 763bb3d19a13..22939998c79e 100644 --- a/reference/uodbc/book.xml +++ b/reference/uodbc/book.xml @@ -9,24 +9,24 @@ &reftitle.intro; - + In addition to normal ODBC support, the Unified ODBC functions in PHP allow you to access several databases that have borrowed the semantics of the ODBC API to implement their own API. Instead of maintaining multiple database drivers that were all nearly identical, these drivers have been unified into a single set of ODBC functions. - - + + The following databases are supported by the Unified ODBC functions: Adabas D, IBM DB2, iODBC, Solid, and Sybase SQL Anywhere. - + - + With the exception of iODBC, there is no ODBC involved when connecting to the above databases. The functions that you use to speak natively to them just happen to share the same @@ -36,15 +36,17 @@ is available at www.iodbc.org with the alternative unixODBC available at www.unixodbc.org. - + - + &reference.uodbc.setup; &reference.uodbc.constants; &reference.uodbc.reference; + &reference.uodbc.odbc.connection; + &reference.uodbc.odbc.result; +
+ &reftitle.intro; + + A fully opaque class which replaces an ODBC connection resource as of PHP 8.4.0. + +
+ + +
+ &reftitle.classsynopsis; + + + + Odbc + + + + final + Connection + + + + + +
+ + + + + diff --git a/reference/uodbc/odbc.result.xml b/reference/uodbc/odbc.result.xml new file mode 100644 index 000000000000..562fa6f01ef3 --- /dev/null +++ b/reference/uodbc/odbc.result.xml @@ -0,0 +1,57 @@ + + + The Odbc\Result class + Odbc\Result + + + + +
+ &reftitle.intro; + + A fully opaque class which replaces an ODBC result resource as of PHP 8.4.0. + +
+ + +
+ &reftitle.classsynopsis; + + + + Odbc + + + + final + Result + + + + + +
+ +
+ +
+ diff --git a/reference/uodbc/versions.xml b/reference/uodbc/versions.xml index 1267dd0a9bf4..d126e36218ee 100644 --- a/reference/uodbc/versions.xml +++ b/reference/uodbc/versions.xml @@ -4,6 +4,11 @@ Do NOT translate this file --> + + + + + From c0d195ce9c216c0395f82f018f125e93bffdc12e Mon Sep 17 00:00:00 2001 From: Jordi Kroon Date: Fri, 22 May 2026 19:30:00 +0200 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Louis-Arnaud --- reference/uodbc/odbc.connection.xml | 3 +-- reference/uodbc/odbc.result.xml | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/reference/uodbc/odbc.connection.xml b/reference/uodbc/odbc.connection.xml index 0fa6fcb7b15c..9d354e6eda6c 100644 --- a/reference/uodbc/odbc.connection.xml +++ b/reference/uodbc/odbc.connection.xml @@ -9,7 +9,7 @@
&reftitle.intro; - A fully opaque class which replaces an ODBC connection resource as of PHP 8.4.0. + A fully opaque class which replaces an odbc_connection &resource; as of PHP 8.4.0.
@@ -23,7 +23,6 @@ - final Connection diff --git a/reference/uodbc/odbc.result.xml b/reference/uodbc/odbc.result.xml index 562fa6f01ef3..6aabfd49e362 100644 --- a/reference/uodbc/odbc.result.xml +++ b/reference/uodbc/odbc.result.xml @@ -9,7 +9,7 @@
&reftitle.intro; - A fully opaque class which replaces an ODBC result resource as of PHP 8.4.0. + A fully opaque class which replaces an odbc_result &resource; as of PHP 8.4.0.
@@ -23,7 +23,6 @@ - final Result