Abort LMDB transaction whe trying to delete non-existing key

This commit is contained in:
George Peter Banyard 2022-07-01 17:26:27 +01:00
parent 40908b10fc
commit 1d0c287b90
No known key found for this signature in database
GPG Key ID: 3306078E3194AEBD
2 changed files with 5 additions and 0 deletions

4
NEWS
View File

@ -2,6 +2,10 @@ PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? ????, PHP 8.2.0alpha3
- DBA:
. Fixed LMDB driver hanging when attempting to delete a non-existing key
(Girgias)
- Opcache:
. Allocate JIT buffer close to PHP .text segemnt to allow using direct
IP-relative calls and jumps.

View File

@ -243,6 +243,7 @@ DBA_DELETE_FUNC(lmdb)
php_error_docref(NULL, E_WARNING, "%s", mdb_strerror(rc));
mdb_txn_abort(LMDB_IT(txn));
return FAILURE;
}