Closed lexesv closed 6 years ago
/home/build/leveldb/out-shared# ls db db_bench helpers libleveldb.so libleveldb.so.1 libleveldb.so.1.19 port table util
"make test" is failing several tests on Ubuntu 16.04 LTS 64-bit. Please fix. There are a lot of people using LevelDB, and this is the only PHP extension that comes close to working. PHP 5.x to 7 migrations using LevelDB are impossible without this driver working.
Also, the PHP7 versions should be the main version, and should be the version which PECL is serving. PHP 5.x is dead.
Here's the result of "make test" for a build of the latest PHP 7 snapshot of the code, built against the latest LevelDB library:
=====================================================================
PHP : /usr/bin/php7.0
PHP_SAPI : cli
PHP_VERSION : 7.0.22-0ubuntu0.16.04.1
ZEND_VERSION: 3.0.0
PHP_OS : Linux - Linux util502 4.4.0-1038-aws #47-Ubuntu SMP Thu Sep 28 20:05:35 UTC 2017 x86_64
INI actual : /opt/leveldb-pecl/php-leveldb-PHP7/tmp-php.ini
More .INIs :
CWD : /opt/leveldb-pecl/php-leveldb-PHP7
Extra dirs :
VALGRIND : Not used
=====================================================================
TIME START 2017-10-19 07:36:00
=====================================================================
PASS leveldb - basic: get(), set(), put(), delete() [tests/001-basic.phpt]
PASS leveldb - db management [tests/002-db-management.phpt]
PASS leveldb - open base dir [tests/003-openbasedir.phpt]
PASS leveldb - write batch [tests/004-write-batch.phpt]
FAIL leveldb - iterate thought db [tests/005-iterator.phpt]
FAIL leveldb - iterate thought db by foreach [tests/006-iterator-foreach.phpt]
FAIL leveldb - db close [tests/007-db-close.phpt]
FAIL leveldb - options open options [tests/008-options.phpt]
FAIL leveldb - custom comparator [tests/009-comparator.phpt]
PASS leveldb - compression [tests/010-compression.phpt]
FAIL leveldb - getApproximateSizes [tests/011-getApproximateSizes.phpt]
PASS leveldb - getProperty [tests/012-getProperty.phpt]
PASS leveldb - compactRange [tests/013-compactRange.phpt]
FAIL leveldb - iterator destroy [tests/014-iterator-destroy.phpt]
FAIL leveldb - Fixed bug segfault when double construct iterator [tests/015-double-iterator.phpt]
FAIL leveldb - different iterators should not affect each other [tests/016-different-iterators-should-differ.phpt]
FAIL leveldb - LevelDB::getIterator() [tests/017-db-getIterator.phpt]
FAIL leveldb - snapshot [tests/018-snapshot.phpt]
PASS leveldb - NULL comparator should not throw exception [tests/019-null-comparator.phpt]
PASS leveldb - NULL snapshot should not throw exception [tests/020-null-snapshot.phpt]
=====================================================================
TIME END 2017-10-19 07:36:02
=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped : 0
Exts tested : 14
---------------------------------------------------------------------
Number of tests : 20 20
Tests skipped : 0 ( 0.0%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 11 ( 55.0%) ( 55.0%)
Expected fail : 0 ( 0.0%) ( 0.0%)
Tests passed : 9 ( 45.0%) ( 45.0%)
---------------------------------------------------------------------
Time taken : 2 seconds
=====================================================================
=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
leveldb - iterate thought db [tests/005-iterator.phpt]
leveldb - iterate thought db by foreach [tests/006-iterator-foreach.phpt]
leveldb - db close [tests/007-db-close.phpt]
leveldb - options open options [tests/008-options.phpt]
leveldb - custom comparator [tests/009-comparator.phpt]
leveldb - getApproximateSizes [tests/011-getApproximateSizes.phpt]
leveldb - iterator destroy [tests/014-iterator-destroy.phpt]
leveldb - Fixed bug segfault when double construct iterator [tests/015-double-iterator.phpt]
leveldb - different iterators should not affect each other [tests/016-different-iterators-should-differ.phpt]
leveldb - LevelDB::getIterator() [tests/017-db-getIterator.phpt]
leveldb - snapshot [tests/018-snapshot.phpt]
=====================================================================
You may have found a problem in PHP.
This report can be automatically sent to the PHP QA team at
http://qa.php.net/reports and http://news.php.net/php.qa.reports
This gives us a better understanding of PHP's behavior.
If you don't want to send the report immediately you can choose
option "s" to save it. You can then email it to qa-reports@lists.php.net later.
Do you want to send this report now? [Yns]: ^CMakefile:134: recipe for target 'test' failed
Also, I'm seeing segfaults when running this LevelDB extension under PHP7.0 on Ubuntu 16.04 LTS 64-bit.
make test
cat 006-iterator-foreach.sh
./006-iterator-foreach.sh