]> granicus.if.org Git - php/commitdiff
Fixed bug #39845 (Persistent connections generate a warning in pdo_pgsql).
authorIlia Alshanetsky <iliaa@php.net>
Mon, 18 Dec 2006 17:56:25 +0000 (17:56 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 18 Dec 2006 17:56:25 +0000 (17:56 +0000)
NEWS
ext/pdo_pgsql/pgsql_driver.c

diff --git a/NEWS b/NEWS
index 254e639f3e5586fadf0723b5891d0e194b71c61f..786b1c1f1e72b69abde7fda18c7b8eddb9fe2085 100644 (file)
--- 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)
index 6adb2efdf958b72c9c1eb607abb41bb845181679..d9ab45c7ef2aac531f59f75227fb890669d1575e 100644 (file)
@@ -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,