php-leveldb
php-leveldb copied to clipboard
Fix reopen cleanup in PHP LevelDB
Summary
- ensure comparator and callable resources are released when reopening a DB
- reset internal DB pointer to avoid double close
- add regression test for reopening
Testing
-
make test TESTS=tests/021-reopen.phpt -
make test TESTS=tests
https://chatgpt.com/codex/tasks/task_e_683fca06d404832785bd2dd1bf232737
Looks OK although this is a pretty weird use case