Doc #55237 [Opn->Csd]: PDO::__construct can generate "warning"

From: Date: Wed, 28 Oct 2020 15:05:12 +0000
Subject: Doc #55237 [Opn->Csd]: PDO::__construct can generate "warning"
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-18044@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=55237&edit=1 ID: 55237 Updated by: nikic@php.net Reported by: php at bouchery dot com Summary: PDO::__construct can generate "warning" -Status: Open +Status: Closed Type: Documentation Problem Package: PDO MySQL PHP Version: Irrelevant -Assigned To: +Assigned To: nikic Block user comment: N Private report: N New Comment: At least since PHP 7.4, "MySQL server has gone away" should always follows the PDO error mode (or be an exception for the case of the constructor). Previous Comments: ------------------------------------------------------------------------ [2011-07-19 05:16:28] php at bouchery dot com Description: ------------ --- From manual page: http://www.php.net/pdo.construct%23Errors/Exceptions --- 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" ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55237&edit=1

« previous php.doc.bugs (#18044) next »