torden / php-mdbm Goto Github PK
View Code? Open in Web Editor NEWJust! PHP interface for Y! MDBM , PHP mdbm wrapper
Home Page: https://torden.github.io/php-mdbm/
Just! PHP interface for Y! MDBM , PHP mdbm wrapper
Home Page: https://torden.github.io/php-mdbm/
PHP7 Support....
Program received signal SIGSEGV, Segmentation fault.
mdbm_store_r (db=0x12ca450, key=key@entry=0x7fffffff9e90, val=val@entry=0x7fffffff9e80, flags=1, iter=iter@entry=0x0) at mdbm.c:4867
4867 if (esize > maxesize || (db->db_spillsize && MDBM_LOB_ENABLED(db) && vsize >= db->db_spillsize)) {
Program terminated with signal 11, Segmentation fault.
#0 MDBM_REPLACED_OR_CHANGED (db=0x7d44390) at /root/SRC/mdbm/include/mdbm_internal.h:998
998 || MDBM_IS_REPLACED(db) || MDBM_SIZE_CHANGED(db);
Current code halts the script on any error because its log level is E_ERROR(not recoverable).
php_error_docref(NULL TSRMLS_CC, E_ERROR, "failed to open the mdbm");
https://github.com/torden/php-mdbm/blob/master/src/mdbm.c#L1045
Could we use E_WARNING instead?
It is recoverable so users can handle errors.
Hi,
I see you have multiple implementations for mdbm and I was wondering if they all perform more-or-less equally? Do you have any performance data? Also, is there any plans to have an openresty (nginx/lua) lib?
I saw you are very active with it so I thought I'd ask :-) I have not worked with mdbm or your implementations but I plan on doing so when I manage to find some time for playing around.
Thanks for your code
==387== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==387== Bad permissions for mapped region at address 0x4050058
==387== at 0x91B8814: mdbm_reset_stat_operations (mdbm.c:4634)
==387== by 0x8FA36B9: zif_mdbm_reset_stat_operations (mdbm.c:3267)
==387== by 0x6DFC79: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==387== by 0x6E69B0: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==387== by 0x6DEEC2: execute_ex (zend_vm_execute.h:363)
==387== by 0x6DEFAB: zend_execute (zend_vm_execute.h:388)
==387== by 0x68DA9B: zend_execute_scripts (zend.c:1341)
==387== by 0x5C4FFE: php_execute_script (main.c:2613)
==387== by 0x761AF9: do_cli (php_cli.c:998)
==387== by 0x763141: main (php_cli.c:1382)
On Travic-ci (precise)
=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
MDBM locking [tests/08lock.phpt]
MDBM cache [tests/14cache.phpt]
MDBM replace [tests/16replace.phpt]
=====================================================================
=====================================================================
LEAKED TEST SUMMARY
---------------------------------------------------------------------
MDBM locking [tests/08lock.phpt]
MDBM cache [tests/14cache.phpt]
MDBM replace [tests/16replace.phpt]
=====================================================================
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.