diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-11 17:13:00 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-11 17:13:28 +0200 |
commit | 981af26d7bc742a4cfe34b764a5f32f0e3fc776c (patch) | |
tree | 92d24dfd6c56c867b93b72068327087c7233197f /ext/pdo_mysql/mysql_driver.c | |
parent | 5c5508698d7c554065b4b36cbb73c6e8a9922d05 (diff) | |
parent | 2fe2e5b48f8cf9a45ac2530dd0e2dca8f4287e01 (diff) | |
download | php-git-981af26d7bc742a4cfe34b764a5f32f0e3fc776c.tar.gz |
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Fix #64705 errorInfo property of PDOException is null when PDO::__construct() fails
Diffstat (limited to 'ext/pdo_mysql/mysql_driver.c')
-rw-r--r-- | ext/pdo_mysql/mysql_driver.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/pdo_mysql/mysql_driver.c b/ext/pdo_mysql/mysql_driver.c index cceb587b4e..5b57f84816 100644 --- a/ext/pdo_mysql/mysql_driver.c +++ b/ext/pdo_mysql/mysql_driver.c @@ -103,8 +103,7 @@ int _pdo_mysql_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, const char *file, int lin if (!dbh->methods) { PDO_DBG_INF("Throwing exception"); - zend_throw_exception_ex(php_pdo_get_exception(), einfo->errcode, "SQLSTATE[%s] [%d] %s", - *pdo_err, einfo->errcode, einfo->errmsg); + pdo_throw_exception(einfo->errcode, einfo->errmsg, pdo_err); } PDO_DBG_RETURN(einfo->errcode); |