mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
ext/pgsql: Add check for constant PGRES_TUPLES_CHUNK to fix compilation failures
close GH-17540
This commit is contained in:
parent
0b12db6afa
commit
fa21fce84f
2 changed files with 13 additions and 5 deletions
4
NEWS
4
NEWS
|
@ -65,6 +65,10 @@ PHP NEWS
|
||||||
the cpu mask argument with entries type different than int/string.
|
the cpu mask argument with entries type different than int/string.
|
||||||
(David Carlier)
|
(David Carlier)
|
||||||
|
|
||||||
|
- PgSql:
|
||||||
|
. Fixed build failure when the constant PGRES_TUPLES_CHUNK is not present
|
||||||
|
in the system. (chschneider)
|
||||||
|
|
||||||
- Phar:
|
- Phar:
|
||||||
. Fixed bug GH-17518 (offset overflow phar extractTo()). (nielsdos)
|
. Fixed bug GH-17518 (offset overflow phar extractTo()). (nielsdos)
|
||||||
|
|
||||||
|
|
|
@ -28,14 +28,18 @@ if test "$PHP_PGSQL" != "no"; then
|
||||||
[Define to 1 if libpq has the 'PQsocketPoll' function (PostgreSQL 17 or
|
[Define to 1 if libpq has the 'PQsocketPoll' function (PostgreSQL 17 or
|
||||||
later).])],,
|
later).])],,
|
||||||
[$PGSQL_LIBS])
|
[$PGSQL_LIBS])
|
||||||
|
|
||||||
|
old_CFLAGS=$CFLAGS
|
||||||
|
CFLAGS="$CFLAGS $PGSQL_CFLAGS"
|
||||||
|
|
||||||
|
AC_CHECK_DECLS([PGRES_TUPLES_CHUNK],
|
||||||
PHP_CHECK_LIBRARY([pq], [PQsetChunkedRowsMode],
|
PHP_CHECK_LIBRARY([pq], [PQsetChunkedRowsMode],
|
||||||
[AC_DEFINE([HAVE_PG_SET_CHUNKED_ROWS_SIZE], [1],
|
[AC_DEFINE([HAVE_PG_SET_CHUNKED_ROWS_SIZE], [1],
|
||||||
[Define to 1 if libpq has the 'PQsetChunkedRowsMode' function (PostgreSQL
|
[Define to 1 if libpq has the 'PQsetChunkedRowsMode' function (PostgreSQL
|
||||||
17 or later).])],,
|
17 or later).])],,
|
||||||
[$PGSQL_LIBS])
|
[$PGSQL_LIBS]),,
|
||||||
|
[#include <libpq-fe.h>]
|
||||||
old_CFLAGS=$CFLAGS
|
)
|
||||||
CFLAGS="$CFLAGS $PGSQL_CFLAGS"
|
|
||||||
|
|
||||||
dnl Available since PostgreSQL 12.
|
dnl Available since PostgreSQL 12.
|
||||||
AC_CACHE_CHECK([if PGVerbosity enum has PQERRORS_SQLSTATE],
|
AC_CACHE_CHECK([if PGVerbosity enum has PQERRORS_SQLSTATE],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue