ID:               39653
 Updated by:       [EMAIL PROTECTED]
 Reported By:      vesely at tana dot it
-Status:           Open
+Status:           Feedback
-Bug Type:         Reproducible crash
+Bug Type:         Unknown/Other Function
 Operating System: unix
 PHP Version:      4.4.4
 New Comment:

Elaborate please on how to reproduce it, what is this patch supposed to
fix and why.

>Please add tests for db-4.5 and newer: the compilation >does not fail
if by chance an older db-4.1 (in my case) existed.
This likely means you're messing different headers and libraries, which
is in no way PHP problem.


Previous Comments:
------------------------------------------------------------------------

[2006-11-28 00:30:08] vesely at tana dot it

Description:
------------
Please add tests for db-4.5 and newer: the compilation does not fail if
by chance an older db-4.1 (in my case) existed.
However, when calling dbd->set_errcall the process crashes with pc=0.
That happens because the DB structure changed and newer elements have
been inserted in the middle of it, rather than at the bottom.

Hopefully, one day BDB will come with an official m4 macro. I already
asked them...

One more thing, the errcall has different arguments in 4.5:
--- ./ext/dba/dba_db4.c%    2006-11-27 23:54:31.021697000 +0100
+++ ./ext/dba/dba_db4.c    2006-11-27 23:54:31.031696000 +0100
@@ -35,7 +35,7 @@
#include <db.h>
#endif

-static void php_dba_db4_errcall_fcn(const char *errpfx, char *msg)
+static void php_dba_db4_errcall_fcn(const DB_ENV*env, const char
*errpfx, const char *msg)
{
    TSRMLS_FETCH();
     


Reproduce code:
---------------
This was trapped in the test suite. (Since the program aborted its
output was different.)


Expected result:
----------------
database handler: db4
3NYNYY
Content String 2
Content 2 replaced
Read during write: not allowed
Content 2 replaced 2nd time
The 6th value
array(3) {
 ["key number 6"]=>
 string(13) "The 6th value"
 ["key2"]=>
 string(27) "Content 2 replaced 2nd time"
 ["key5"]=>
 string(23) "The last content string"
}


Actual result:
--------------
database handler: db4


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=39653&edit=1

Reply via email to