[php-src] PR #17540: Add check for constant PGRES_TUPLES_CHUNK to fix compilation failures
| From: | chschneider | Date: | Tue, 21 Jan 2025 17:28:30 +0000 |
| Subject: | [php-src] PR #17540: Add check for constant PGRES_TUPLES_CHUNK to fix compilation failures | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-30471@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17540
Author: chschneider
We have an OpenSUSE 15.6 installation with libpq5 installed (the current version being
libpq5-17.2-..., i.e. compatible with postgresql17).
But as the current version of postgis does not work properly with postgresql17 so we are currently
stuck with the packages postgresql16 and postgresql16-devel.
The file ext/pgsql/config.m4 only checks for the function PQsetChunkedRowsMode but the header files
of postgresql16-devel does not define the constant PGRES_TUPLES_CHUNK in libpq-fe.h which leads to a
compilation failure.
I added a check for PGRES_TUPLES_CHUNK to avoid this while keeping the feature enabled if the
include file declares the constant.