Req #71290 [Ver->Csd]: PDO::query() throws both an error and an exception if server has gone away

From: Date: Wed, 26 Feb 2020 22:38:09 +0000
Subject: Req #71290 [Ver->Csd]: PDO::query() throws both an error and an exception if server has gone away
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-225740@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71290&edit=1

 ID:                 71290
 Updated by:         cmb@php.net
 Reported by:        jurchiks101 at gmail dot com
 Summary:            PDO::query() throws both an error and an exception
                     if server has gone away
-Status:             Verified
+Status:             Closed
 Type:               Feature/Change Request
 Package:            PDO MySQL
 Operating System:   *
 PHP Version:        *
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

This issue is already fixed[1] as of PHP 7.4.0.  I don't think
that back-porting the fix to PHP 7.3 makes much sense at this
point.

[1] <http://git.php.net/?p=php-src.git;a=commit;h=2856afc70e50b85424b2bd2d6653020679160a0b>


Previous Comments:
------------------------------------------------------------------------
[2017-10-24 03:30:40] kalle@php.net

Given no activity, I'm gonna unassign this one so its open for grabs.

------------------------------------------------------------------------
[2016-04-05 09:51:20] jurchiks101 at gmail dot com

Any news on this?

------------------------------------------------------------------------
[2016-02-01 19:02:20] jurchiks101 at gmail dot com

Much appreciated!

------------------------------------------------------------------------
[2016-02-01 17:38:23] willfitch@php.net

I'm actually going to reopen this.  I'll submit a change that will internally
disable/enable warnings from mysqlnd based on the attributes set in PDO.

------------------------------------------------------------------------
[2016-02-01 15:58:33] jurchiks101 at gmail dot com

Yeeeah, I'm not going to compile PHP on Windows, that is waaay too much hassle; not nearly as
easy as on Linux.
So I guess it's mysqlnd that should be fixed then.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=71290


--
Edit this bug report at https://bugs.php.net/bug.php?id=71290&edit=1


Thread (8 messages)

« previous php.bugs (#225740) next »