1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00

check PQsetErrorContextVisibility availability (libpq >= 9.6)

This commit is contained in:
Remi Collet
2023-06-21 07:37:11 +02:00
committed by Remi Collet
parent fe6263e243
commit 21aaf3321f
6 changed files with 27 additions and 6 deletions

View File

@@ -2834,6 +2834,7 @@ PHP_FUNCTION(pg_set_error_verbosity)
}
/* }}} */
#ifdef HAVE_PG_CONTEXT_VISIBILITY
PHP_FUNCTION(pg_set_error_context_visibility)
{
zval *pgsql_link = NULL;
@@ -2856,6 +2857,7 @@ PHP_FUNCTION(pg_set_error_context_visibility)
RETURN_THROWS();
}
}
#endif
/* {{{ Set client encoding */
PHP_FUNCTION(pg_set_client_encoding)