|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #55237 PDO::__construct can generate "warning"
Submitted: 2011-07-19 05:16 UTC Modified: 2017-01-28 11:29 UTC
Avg. Score:5.0 ± 0.0
Reproduced:5 of 5 (100.0%)
Same Version:3 (60.0%)
Same OS:3 (60.0%)
From: php at bouchery dot com Assigned:
Status: Open Package: PDO MySQL
PHP Version: Irrelevant OS:
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 — but make sure to vote on the bug!
Your email address:
Solve the problem:
21 - 1 = ?
Subscribe to this entry?

 [2011-07-19 05:16 UTC] php at bouchery dot com
From manual page:

Using MySQL, PDO::__construct can generate "warning php error" (even 
PDO::ERRMODE_EXCEPTION). Is result return "false" ?

Generated error is "Warning: PDO::__construct() [pdo.--construct]: MySQL server 
has gone away in [script name] on line xxx"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-28 11:29 UTC]
-Type: Feature/Change Request +Type: Documentation Problem -Package: Documentation problem +Package: PDO MySQL
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Dec 08 13:01:23 2019 UTC