reeze / php-leveldb

The PHP Binding for LevelDB
Other
240 stars 44 forks source link

close() operation not working! #47

Closed cayolblake closed 2 years ago

cayolblake commented 2 years ago

PHP 8.1

php > $db = new LevelDB("db1.ldb");

php > var_dump($db->get("Key"));
string(14) "ValueYYYYYYYYY"

php > var_dump($db->close());
bool(true)

php > var_dump($db->get("Key"));
string(14) "ValueYYYYYYYYY"
dktapps commented 2 years ago

close() is a no-op since v0.3 and is marked as deprecated

cayolblake commented 2 years ago

Ah okay. Guess there should be some warning around it :)

Probably update https://github.com/reeze/php-leveldb#leveldbclose