mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Remove redundant check in pdo_raise_impl_error (#13851)
`dbh` is always non-NULL because it is dereferenced at the start of the function.
This commit is contained in:
parent
f590df442f
commit
eaaf175bbb
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ void pdo_raise_impl_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, pdo_error_type sqlst
|
|||
spprintf(&message, 0, "SQLSTATE[%s]: %s", *pdo_err, msg);
|
||||
}
|
||||
|
||||
if (dbh && dbh->error_mode != PDO_ERRMODE_EXCEPTION) {
|
||||
if (dbh->error_mode != PDO_ERRMODE_EXCEPTION) {
|
||||
php_error_docref(NULL, E_WARNING, "%s", message);
|
||||
} else {
|
||||
zval ex, info;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue