From b1ffea3ccce0e1f1a63022f446c1549dfad92e9e Mon Sep 17 00:00:00 2001 From: Matteo Beccati Date: Sun, 9 Mar 2014 11:43:13 +0100 Subject: Drop PDO support for extremely old libpq versions configure will now fail if any of the following function is missing: * PQprepare * PQexecParams * PQescapeStringConn * PQescapeByteaConn --- ext/pdo_pgsql/php_pdo_pgsql_int.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'ext/pdo_pgsql/php_pdo_pgsql_int.h') diff --git a/ext/pdo_pgsql/php_pdo_pgsql_int.h b/ext/pdo_pgsql/php_pdo_pgsql_int.h index 908f47d57c..037344ab94 100644 --- a/ext/pdo_pgsql/php_pdo_pgsql_int.h +++ b/ext/pdo_pgsql/php_pdo_pgsql_int.h @@ -43,14 +43,12 @@ typedef struct { unsigned _reserved:31; pdo_pgsql_error_info einfo; Oid pgoid; -#if HAVE_PQPREPARE /* The following two variables have the same purpose. Unfortunately we need to keep track of two different attributes having the same effect. It might be worth to deprecate the driver specific one soon. */ int emulate_prepares; int disable_native_prepares; -#endif - unsigned int stmt_counter; + unsigned int stmt_counter; } pdo_pgsql_db_handle; typedef struct { @@ -66,14 +64,12 @@ typedef struct { int current_row; pdo_pgsql_column *cols; char *cursor_name; -#if HAVE_PQPREPARE char *stmt_name; char *query; char **param_values; int *param_lengths; int *param_formats; Oid *param_types; -#endif zend_bool is_prepared; } pdo_pgsql_stmt; -- cgit v1.2.1