Skip to content

Commit 924f525

Browse files
committed
test dba change
1 parent 97b4eff commit 924f525

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ext/dba/dba.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -974,12 +974,13 @@ PHP_FUNCTION(dba_close)
974974
CHECK_DBA_CONNECTION(connection->info);
975975

976976
bool persistent = connection->info->flags & DBA_PERSISTENT;
977+
void *info_ptr = connection->info;
978+
979+
dba_close_connection(connection);
977980

978981
if (persistent) {
979-
zend_hash_apply_with_argument(&EG(persistent_list), remove_pconnection_from_list, (void *) connection->info);
982+
zend_hash_apply_with_argument(&EG(persistent_list), remove_pconnection_from_list, info_ptr);
980983
}
981-
982-
dba_close_connection(connection);
983984
}
984985
/* }}} */
985986

0 commit comments

Comments
 (0)