]> granicus.if.org Git - php/commit
Fix bug #64172
authorDaniel Persson <daniel.persson@textalk.se>
Sat, 26 Sep 2015 19:48:18 +0000 (21:48 +0200)
committerStanislav Malyshev <stas@php.net>
Mon, 19 Oct 2015 00:03:39 +0000 (17:03 -0700)
commit307c1f6bf0e8e3c97416b2a22ed54dd4546ea689
tree0b7dc19da5fc4ae12d6375dba9a01c58f91be550
parentc7c6df6cec04b3b46160fd726c2af698bbdf4dc9
Fix bug #64172

Check if the SQLSTATE error code is equal to PDO_ERR_NONE before we ask the driver.
And if no error is reported skip the extra call to the driver.
ext/pdo/pdo_dbh.c
ext/pdo/tests/bug_64172.phpt [new file with mode: 0644]
ext/pdo_mysql/tests/pdo_mysql_stmt_errorinfo.phpt