mirror of
https://github.com/php/php-src.git
synced 2024-12-15 21:05:51 +08:00
Fixed bug #34777 (Crash in dblib when fetching non-existent error info).
This commit is contained in:
parent
1483b322f4
commit
47bf5f068c
@ -61,7 +61,9 @@ static int dblib_fetch_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info TSRMLS
|
||||
add_next_index_string(info, message, 0);
|
||||
add_next_index_long(info, einfo->oserr);
|
||||
add_next_index_long(info, einfo->severity);
|
||||
add_next_index_string(info, einfo->oserrstr, 1);
|
||||
if (einfo->oserrstr) {
|
||||
add_next_index_string(info, einfo->oserrstr, 1);
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user