|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56791 PDO::Mysql and Persistence
Submitted: 2006-01-21 19:23 UTC Modified: 2006-04-09 01:31 UTC
From: abcde at abcde dot com Assigned:
Status: Not a bug Package: PDO (PECL)
PHP Version: 5.1.1 OS: Linux UML 2.6.14
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:
47 - 20 = ?
Subscribe to this entry?

 [2006-01-21 19:23 UTC] abcde at abcde dot com
I am using PDO to connect to a MySQL database with ATTR_PERSISTENT set to true. If PDO accesses the database, the database is restarted, and then PDO attempts to access the database again, the errorInfo indicates that the database has "gone away." I assume that PDO is caching that the database link has failed and is not trying to reestablish the connection, which seems like incorrect behavior. When ATTR_PERSISTENT is set to false, the problem disappears.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-09 01:31 UTC]
Not enough info and bogus email address supplied.
Thanks for nothing; we have no way to tell if this is a real issue or a duplicate of another problem.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Jul 27 15:01:23 2021 UTC