Skip to content

Commit 3337f22

Browse files
committed
Merge branch 'PHP-8.4'
2 parents aa76127 + fa21fce commit 3337f22

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

ext/pgsql/config.m4

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,22 @@ if test "$PHP_PGSQL" != "no"; then
2828
[Define to 1 if libpq has the 'PQsocketPoll' function (PostgreSQL 17 or
2929
later).])],,
3030
[$PGSQL_LIBS])
31-
PHP_CHECK_LIBRARY([pq], [PQsetChunkedRowsMode],
32-
[AC_DEFINE([HAVE_PG_SET_CHUNKED_ROWS_SIZE], [1],
33-
[Define to 1 if libpq has the 'PQsetChunkedRowsMode' function (PostgreSQL
34-
17 or later).])],,
35-
[$PGSQL_LIBS])
3631
PHP_CHECK_LIBRARY([pq], [PQclosePrepared],
3732
[AC_DEFINE([HAVE_PG_CLOSE_STMT], [1], [PostgreSQL 17 or later])],,
3833
[$PGSQL_LIBS])
3934

4035
old_CFLAGS=$CFLAGS
4136
CFLAGS="$CFLAGS $PGSQL_CFLAGS"
4237

38+
AC_CHECK_DECLS([PGRES_TUPLES_CHUNK],
39+
PHP_CHECK_LIBRARY([pq], [PQsetChunkedRowsMode],
40+
[AC_DEFINE([HAVE_PG_SET_CHUNKED_ROWS_SIZE], [1],
41+
[Define to 1 if libpq has the 'PQsetChunkedRowsMode' function (PostgreSQL
42+
17 or later).])],,
43+
[$PGSQL_LIBS]),,
44+
[#include <libpq-fe.h>]
45+
)
46+
4347
dnl Available since PostgreSQL 12.
4448
AC_CACHE_CHECK([if PGVerbosity enum has PQERRORS_SQLSTATE],
4549
[php_cv_enum_pgverbosity_pqerrors_sqlstate],

0 commit comments

Comments
 (0)