[php-src] PR #21979: ext/dba: end LMDB cursor iteration on write/delete
| From: | iliaal | Date: | Fri, 08 May 2026 00:41:21 +0000 |
| Subject: | [php-src] PR #21979: ext/dba: end LMDB cursor iteration on write/delete | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-36053@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21979
Author: iliaal
dba_insert/replace/delete on an LMDB handler started a write txn into LMDB_IT(txn) while
dba_firstkey's cursor was still bound to the read txn in that slot, so the next dba_nextkey
renewed a freed handle. Close the cursor and abort the read txn before starting the write txn, and
bail out of dba_nextkey when no cursor is open.