We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
H->db
firebird_handle_closer
1 parent e96a35b commit 6558bdaCopy full SHA for 6558bda
ext/pdo_firebird/firebird_driver.c
@@ -594,7 +594,8 @@ static void firebird_handle_closer(pdo_dbh_t *dbh) /* {{{ */
594
}
595
H->in_manually_txn = 0;
596
597
- if (isc_detach_database(H->isc_status, &H->db)) {
+ /* isc_detach_database returns 0 on success, 1 on failure. */
598
+ if (H->db != NULL && isc_detach_database(H->isc_status, &H->db)) {
599
php_firebird_error(dbh);
600
601
0 commit comments