|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39845 Persistent connections and PostgreSQL
Submitted: 2006-12-15 16:09 UTC Modified: 2006-12-18 17:57 UTC
From: olivier at elma dot fr Assigned:
Status: Closed Package: PDO related
PHP Version: 5.2.0 OS: Debian unstable
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
27 + 25 = ?
Subscribe to this entry?

 [2006-12-15 16:09 UTC] olivier at elma dot fr
Since I upgraded from php 5.1.x to php 5.2.0 persistent connections doesn't work anymore.
PDO keeps telling me the driver does not support this functionnality.

Reproduce code:
try {
   $dbh = new PDO('pgsql:host=localhost dbname=amarok user=slaanesh', 'slaanesh', 'XXXXXX', array(PDO::ATTR_PERSISTENT => true));
   echo "Connected\n"; 
} catch (Exception $e) {
   echo "Failure: " . $e->getMessage();

Expected result:

Actual result:
Warning: PDO::__construct(): SQLSTATE[IM001]: Driver does not support this function: driver does not support setting attributes in /home/slaanesh/pdo.php on line 3


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-15 16:16 UTC] olivier at elma dot fr
Just to be more specific about my php version:
$ php --version
PHP 5.2.0-7 (cli) (built: Nov 24 2006 14:36:54)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
 [2006-12-18 17:57 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Thu Sep 28 09:01:24 2023 UTC