Skip to content

PHP 8.5 cleanup for ODBC documentation - #4870

Open
NattyNarwhal wants to merge 8 commits into
php:masterfrom
NattyNarwhal:odbc-cleanup-8.5
Open

PHP 8.5 cleanup for ODBC documentation#4870
NattyNarwhal wants to merge 8 commits into
php:masterfrom
NattyNarwhal:odbc-cleanup-8.5

Conversation

@NattyNarwhal

Copy link
Copy Markdown
Member

Matches changes in php/php-src#15727.

@DanielEScherzer DanielEScherzer added this to the PHP 8.5 milestone Sep 26, 2025
@NattyNarwhal
NattyNarwhal marked this pull request as ready for review December 2, 2025 15:07

@Girgias Girgias left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentation should still describe behaviour that was possible in PHP 7.

So it might make sense to move all of this to a section "Prior to PHP 8.5" for the flags?

It would also be nice to rewrite the sentences to get rid of personalization (using "you") as that's what our style guide says.

@lacatoire

lacatoire commented Feb 17, 2026

Copy link
Copy Markdown
Member

With PHP 8.4
There was: #ifdef PHP_ODBC_HAVE_FETCH_HASH the odbc_fetch_array and odbc_fetch_object functions were conditional

But with PHP 8.5 the PHP_FUNCTION(odbc_fetch_object) and PHP_FUNCTION(odbc_fetch_array) are without any #ifdef which conditioned the compilation with IBM DB2, IODBC or UnixOCBC.

So I suppose that part of those &reftitle.notes; are not correct anymore for 8.5.

Comment thread reference/uodbc/functions/odbc-fetch-array.xml Outdated
Comment thread reference/uodbc/functions/odbc-fetch-object.xml Outdated
Comment on lines 27 to 33
dirs. E.g., you should define following for Sybase SQL Anywhere 5.5.00 on
QNX, prior to run configure script:
<![CDATA[
CPPFLAGS="-DODBC_QNX -DSQLANY_BUG"
LDFLAGS=-lunix
CUSTOM_ODBC_LIBS="-ldblib -lodbc".
]]>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
dirs.

This is very ancient and implies a lot of things about PHP database
support that hasn't been true in a quarter century.

Also invert the guidance to use driver managers instead of linking
against drivers directly.
Moved into a new section.

Note that I didn't include Birdstep (dropped in 7.3) or Openlink
(dropped seemingly in PHP 5 or older), nor was ODBCRouter ever
documented (despite being dropped in 7.3 as well). I can add these if
needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants