From d257696604ed9c5eaf9f820bf8853cb5d54a3b60 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Mon, 18 Dec 2006 17:56:25 +0000 Subject: [PATCH] Fixed bug #39845 (Persistent connections generate a warning in pdo_pgsql). --- NEWS | 2 ++ ext/pdo_pgsql/pgsql_driver.c | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 254e639f3e..786b1c1f1e 100644 --- a/NEWS +++ b/NEWS @@ -65,6 +65,8 @@ PHP NEWS - Fixed wrong signature initialization in imagepng (Takeshi Abe) - Added optimization for imageline with horizontal and vertial lines (Pierre) - Fixed bug #39846 (Invalid IPv4 treated as valid). (Ilia) +- Fixed bug #39845 (Persistent connections generate a warning in pdo_pgsql). + (Ilia) - Fixed bug #39816 (apxs2filter ignores httpd.conf & .htaccess php config settings). (Ilia) - Fixed bug #39797 (virtual() does not reset changed INI settings). (Ilia) diff --git a/ext/pdo_pgsql/pgsql_driver.c b/ext/pdo_pgsql/pgsql_driver.c index 6adb2efdf9..d9ab45c7ef 100644 --- a/ext/pdo_pgsql/pgsql_driver.c +++ b/ext/pdo_pgsql/pgsql_driver.c @@ -633,6 +633,11 @@ static zend_function_entry *pdo_pgsql_get_driver_methods(pdo_dbh_t *dbh, int kin } } +static int pdo_pgsql_set_attr(pdo_dbh_t *dbh, long attr, zval *val TSRMLS_DC) +{ + return 0; +} + static struct pdo_dbh_methods pgsql_methods = { pgsql_handle_closer, pgsql_handle_preparer, @@ -641,7 +646,7 @@ static struct pdo_dbh_methods pgsql_methods = { pgsql_handle_begin, pgsql_handle_commit, pgsql_handle_rollback, - NULL, /* set_attr */ + pdo_pgsql_set_attr, pdo_pgsql_last_insert_id, pdo_pgsql_fetch_error_func, pdo_pgsql_get_attribute, -- 2.40.0