Skip to content

Commit 1d0c287

Browse files
committed
Abort LMDB transaction whe trying to delete non-existing key
1 parent 40908b1 commit 1d0c287

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? ????, PHP 8.2.0alpha3
44

5+
- DBA:
6+
. Fixed LMDB driver hanging when attempting to delete a non-existing key
7+
(Girgias)
8+
59
- Opcache:
610
. Allocate JIT buffer close to PHP .text segemnt to allow using direct
711
IP-relative calls and jumps.

ext/dba/dba_lmdb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ DBA_DELETE_FUNC(lmdb)
243243

244244
php_error_docref(NULL, E_WARNING, "%s", mdb_strerror(rc));
245245

246+
mdb_txn_abort(LMDB_IT(txn));
246247
return FAILURE;
247248
}
248249

0 commit comments

Comments
 (0)