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.
1 parent 97b4eff commit 924f525Copy full SHA for 924f525
ext/dba/dba.c
@@ -974,12 +974,13 @@ PHP_FUNCTION(dba_close)
974
CHECK_DBA_CONNECTION(connection->info);
975
976
bool persistent = connection->info->flags & DBA_PERSISTENT;
977
+ void *info_ptr = connection->info;
978
+
979
+ dba_close_connection(connection);
980
981
if (persistent) {
- 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);
983
}
-
- dba_close_connection(connection);
984
985
/* }}} */
986
0 commit comments