]> granicus.if.org Git - php/commit
Fix bug #64172
authorDaniel Persson <daniel.persson@textalk.se>
Sat, 26 Sep 2015 19:28:23 +0000 (21:28 +0200)
committerStanislav Malyshev <stas@php.net>
Mon, 19 Oct 2015 00:06:54 +0000 (17:06 -0700)
commit73384728cadfc28ae6c621636de25fdada464e5b
tree0764522107d0ac40a8813919f1fce95bf3f948d2
parentc76fd640e609692724900c54f338a5d99f7d226a
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