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.
2 parents f89f600 + eae69fc commit 0b2bb98Copy full SHA for 0b2bb98
ext/dba/dba.c
@@ -863,9 +863,9 @@ static void php_dba_open(INTERNAL_FUNCTION_PARAMETERS, int persistent)
863
bool close_both;
864
865
close_both = (info->fp != info->lock.fp);
866
- php_stream_close(info->lock.fp);
+ php_stream_free(info->lock.fp, persistent ? PHP_STREAM_FREE_CLOSE_PERSISTENT : PHP_STREAM_FREE_CLOSE);
867
if (close_both) {
868
- php_stream_close(info->fp);
+ php_stream_free(info->fp, persistent ? PHP_STREAM_FREE_CLOSE_PERSISTENT : PHP_STREAM_FREE_CLOSE);
869
}
870
info->fp = NULL;
871
info->lock.fp = NULL;
0 commit comments