diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2020-05-25 09:00:32 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2020-05-25 10:48:35 +0200 |
commit | ce668c0ec6393456be4ce77eabaa4692285d95e5 (patch) | |
tree | 75e3f417c58c78a9f64eaedc7fbd09975d4840d9 /ext/pgsql/php_pgsql.h | |
parent | f3efb9e3fb30fa307e0913e888fb2859cec8209a (diff) | |
download | php-git-ce668c0ec6393456be4ce77eabaa4692285d95e5.tar.gz |
PGSQL and POD_SQL: don't include pg_config.h
Even if that header file is available, we better consider it private,
and don't include it. The information about whether SSL support is
enabled is now missing (`USE_(OPEN)SSL`), and it seems there is no
alternative way to get it (`PQinitSSL()` is always defined), so we
remove it from the PHP info. Furthermore, the `PG_VERSION` and
`PG_VERSION_STR` macros are no longer available, but as of libpq 9.1
there is `PQlibVersion()` which allows us to construct `PG_VERSION` in
a most likely backwards compatible manner. The additional information
available through `PG_VERSION_STR` is lost, though, so we define
`PGSQL_LIBPQ_VERSION_STR` basically as alias of `PGSQL_LIBPQ_VERSION`,
and deprecate it right away.
Since we are now requiring at least libpq 9.1, we can remove some
further compatibility code and additional checks.
Regarding the raised requirements: official support for PostGreSQL 9.0
ended on 2015-10-08, and even CentOS 7 already has PostGreSQL 9.2, so
this is not supposed to be too much of an issue.
Diffstat (limited to 'ext/pgsql/php_pgsql.h')
-rw-r--r-- | ext/pgsql/php_pgsql.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/ext/pgsql/php_pgsql.h b/ext/pgsql/php_pgsql.h index d1509a886e..fe52d9ce96 100644 --- a/ext/pgsql/php_pgsql.h +++ b/ext/pgsql/php_pgsql.h @@ -48,11 +48,6 @@ extern zend_module_entry pgsql_module_entry; # endif #endif -#ifdef HAVE_PG_CONFIG_H -#undef SIZEOF_OFF_T -#include <pg_config.h> -#endif - #ifdef HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT const char * pg_encoding_to_char(int encoding); #endif @@ -141,9 +136,7 @@ PHP_FUNCTION(pg_lo_import); PHP_FUNCTION(pg_lo_export); PHP_FUNCTION(pg_lo_seek); PHP_FUNCTION(pg_lo_tell); -#ifdef HAVE_PG_LO_TRUNCATE PHP_FUNCTION(pg_lo_truncate); -#endif /* debugging functions */ PHP_FUNCTION(pg_trace); |