php-leveldb
php-leveldb copied to clipboard
The PHP Binding for LevelDB
Hi @reeze @dktapps This code fails with a segfault, PHP 8.1.6, Linux ```
Hi @reeze It seems the link to doc http://reeze.cn/php-leveldb/doc/ is totally down. FYI.
- hardware: M1 Mac - OS: Big Sur - PHP: [email protected] by homebrew (7.4.16) - leveldb: 1.23 stable by homebrew (--build-from-source) - ext-leveldb: 0.3.0, downloaded tarball from pecl.php.net, installed by...
The following options are now supported by LevelDB, but not yet exposed: - [`reuse_logs`](https://github.com/pmmp/leveldb/blob/c66f4648c262dfe47ad089aa9af8156c58765c72/include/leveldb/options.h#L141) (not yet exposed to C API) - [`max_file_size`](https://github.com/pmmp/leveldb/blob/c66f4648c262dfe47ad089aa9af8156c58765c72/include/leveldb/options.h#L119) (exposed as [`leveldb_options_set_max_file_size`](https://github.com/pmmp/leveldb/blob/mojang-compatible/include/leveldb/c.h#L190))
[root@liaozongchao php-leveldb]# make /bin/sh /usr/local/soft/php-leveldb/libtool --mode=compile cc -I. -I/usr/local/soft/php-leveldb -DPHP_ATOM_INC -I/usr/local/soft/php-leveldb/include -I/usr/local/soft/php-leveldb/main -I/usr/local/soft/php-leveldb -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/soft/php-leveldb/leveldb.c -o leveldb.lo mkdir .libs cc -I....
## Summary - ensure comparator and callable resources are released when reopening a DB - reset internal DB pointer to avoid double close - free block cache objects on reopen...
## 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 ##...