mirror of
https://github.com/php/php-src.git
synced 2026-10-28 17:56:50 +08:00
* PHP-8.5: ext/pdo_pgsql: Fix CURSOR_SCROLL statements closing a nonexistent cursor # Conflicts: # ext/pdo_pgsql/config.m4 # ext/pdo_pgsql/pgsql_statement.c
23 lines
1.1 KiB
JavaScript
23 lines
1.1 KiB
JavaScript
// vim:ft=javascript
|
|
|
|
ARG_WITH("pdo-pgsql", "PostgreSQL support for PDO", "no");
|
|
|
|
if (PHP_PDO_PGSQL != "no") {
|
|
if (CHECK_LIB("libpq.lib", "pdo_pgsql", PHP_PDO_PGSQL) &&
|
|
CHECK_HEADER("libpq-fe.h", "CFLAGS_PDO_PGSQL", PHP_PDO_PGSQL + "\\include;" + PHP_PHP_BUILD + "\\include\\pgsql;" + PHP_PHP_BUILD + "\\include\\libpq;")) {
|
|
EXTENSION("pdo_pgsql", "pdo_pgsql.c pgsql_driver.c pgsql_statement.c pgsql_sql_parser.c");
|
|
|
|
AC_DEFINE('HAVE_PG_RESULT_MEMORY_SIZE', 1, "Define to 1 if libpq has the 'PQresultMemorySize' function (PostgreSQL 12 or later).");
|
|
AC_DEFINE('HAVE_PDO_PGSQL', 1, "Define to 1 if the PHP extension 'pdo_pgsql' is available.");
|
|
|
|
if (GREP_HEADER("libpq-fe.h", "PQclosePortal", PHP_PDO_PGSQL + "\\include;" + PHP_PHP_BUILD + "\\include\\pgsql;" + PHP_PHP_BUILD + "\\include\\libpq;")) {
|
|
AC_DEFINE('HAVE_PQCLOSEPORTAL', 1, "Define to 1 if libpq has the 'PQclosePortal' function (PostgreSQL 17 or later).");
|
|
}
|
|
|
|
ADD_EXTENSION_DEP('pdo_pgsql', 'pdo');
|
|
ADD_MAKEFILE_FRAGMENT();
|
|
} else {
|
|
WARNING("pdo_pgsql not enabled; libraries and headers not found");
|
|
}
|
|
}
|