Skip to content

Commit 8fce70a

Browse files
committed
Abort LMDB transaction whe trying to delete non-existing key
1 parent b356986 commit 8fce70a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

NEWS

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ PHP NEWS
66
. Fixed bug #80047 (DatePeriod doesn't warn with custom DateTimeImmutable).
77
(Derick)
88

9+
- DBA:
10+
. Fixed LMDB driver hanging when attempting to delete a non-existing key
11+
(Girgias)
12+
913
- FPM:
1014
. Fixed zlog message prepend, free on incorrect address. (Heiko Weber)
1115

ext/dba/dba_lmdb.c

+1
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ DBA_DELETE_FUNC(lmdb)
254254

255255
php_error_docref1(NULL, key, E_WARNING, "%s", mdb_strerror(rc));
256256

257+
mdb_txn_abort(LMDB_IT(txn));
257258
return FAILURE;
258259
}
259260

0 commit comments

Comments
 (0)