mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Raise ext/pgsql requirements to PostGreSQL 7.4
We can safely assume that users have at the very least libpq 7.4, for which official support ended on 2010-10-01; even CentOS 6 has 8.4 now. It is also noteworthy that PDO_PGSQL already requires libpq 7.4 or later.
This commit is contained in:
parent
c0920e674f
commit
4bc1d8333a
6 changed files with 29 additions and 411 deletions
|
@ -77,33 +77,17 @@ PHP_FUNCTION(pg_tty);
|
|||
PHP_FUNCTION(pg_options);
|
||||
PHP_FUNCTION(pg_version);
|
||||
PHP_FUNCTION(pg_ping);
|
||||
#ifdef HAVE_PQPARAMETERSTATUS
|
||||
PHP_FUNCTION(pg_parameter_status);
|
||||
#endif
|
||||
#ifdef HAVE_PGTRANSACTIONSTATUS
|
||||
PHP_FUNCTION(pg_transaction_status);
|
||||
#endif
|
||||
/* query functions */
|
||||
PHP_FUNCTION(pg_query);
|
||||
#ifdef HAVE_PQEXECPARAMS
|
||||
PHP_FUNCTION(pg_query_params);
|
||||
#endif
|
||||
#ifdef HAVE_PQPREPARE
|
||||
PHP_FUNCTION(pg_prepare);
|
||||
#endif
|
||||
#ifdef HAVE_PQEXECPREPARED
|
||||
PHP_FUNCTION(pg_execute);
|
||||
#endif
|
||||
PHP_FUNCTION(pg_send_query);
|
||||
#ifdef HAVE_PQSENDQUERYPARAMS
|
||||
PHP_FUNCTION(pg_send_query_params);
|
||||
#endif
|
||||
#ifdef HAVE_PQSENDPREPARE
|
||||
PHP_FUNCTION(pg_send_prepare);
|
||||
#endif
|
||||
#ifdef HAVE_PQSENDQUERYPREPARED
|
||||
PHP_FUNCTION(pg_send_execute);
|
||||
#endif
|
||||
PHP_FUNCTION(pg_cancel_query);
|
||||
/* result functions */
|
||||
PHP_FUNCTION(pg_fetch_assoc);
|
||||
|
@ -113,9 +97,7 @@ PHP_FUNCTION(pg_fetch_result);
|
|||
PHP_FUNCTION(pg_fetch_row);
|
||||
PHP_FUNCTION(pg_fetch_all);
|
||||
PHP_FUNCTION(pg_fetch_all_columns);
|
||||
#ifdef HAVE_PQCMDTUPLES
|
||||
PHP_FUNCTION(pg_affected_rows);
|
||||
#endif
|
||||
PHP_FUNCTION(pg_get_result);
|
||||
PHP_FUNCTION(pg_result_seek);
|
||||
PHP_FUNCTION(pg_result_status);
|
||||
|
@ -139,9 +121,7 @@ PHP_FUNCTION(pg_flush);
|
|||
PHP_FUNCTION(pg_get_pid);
|
||||
/* error message functions */
|
||||
PHP_FUNCTION(pg_result_error);
|
||||
#ifdef HAVE_PQRESULTERRORFIELD
|
||||
PHP_FUNCTION(pg_result_error_field);
|
||||
#endif
|
||||
PHP_FUNCTION(pg_last_error);
|
||||
PHP_FUNCTION(pg_last_notice);
|
||||
/* copy functions */
|
||||
|
@ -172,16 +152,12 @@ PHP_FUNCTION(pg_untrace);
|
|||
/* utility functions */
|
||||
PHP_FUNCTION(pg_client_encoding);
|
||||
PHP_FUNCTION(pg_set_client_encoding);
|
||||
#ifdef HAVE_PQSETERRORVERBOSITY
|
||||
PHP_FUNCTION(pg_set_error_verbosity);
|
||||
#endif
|
||||
#ifdef HAVE_PQESCAPE
|
||||
PHP_FUNCTION(pg_escape_string);
|
||||
PHP_FUNCTION(pg_escape_bytea);
|
||||
PHP_FUNCTION(pg_unescape_bytea);
|
||||
PHP_FUNCTION(pg_escape_literal);
|
||||
PHP_FUNCTION(pg_escape_identifier);
|
||||
#endif
|
||||
|
||||
/* misc functions */
|
||||
PHP_FUNCTION(pg_meta_data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue