Bug #74401 [Com]: PDO trigger warning already set throw exception
Edit report at https://bugs.php.net/bug.php?id=74401&edit=1
ID: 74401
Comment by: danack@php.net
Reported by: lusc at jiedaibao dot com
Summary: PDO trigger warning already set throw exception
Status: Open
Type: Bug
Package: PDO MySQL
Operating System: Centos6.x
PHP Version: 7.0.17
Block user comment: N
Private report: N
New Comment:
Please can you provide a simple test script that shows this.
Previous Comments:
------------------------------------------------------------------------
[2017-04-10 09:39:24] lusc at jiedaibao dot com
Description:
------------
PDOStatement::execute trigger an error when lost connection. I have already set
$this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
bug an Warning error is trigger , like:
Warning: PDOStatement::execute: MySQL server has gone away in ...
Expected result:
----------------
just throw exception
Actual result:
--------------
warning and exception all trigger
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74401&edit=1
Thread (8 messages)