From: [EMAIL PROTECTED] Operating system: Linux PHP version: 5.3CVS-2008-06-14 (CVS) PHP Bug Type: DBM/DBA related Bug description: Incorrect DB4 error callback function prototype
Description: ------------ For BDB 4.7.25 (and probably earlier), the prototype php_dba_db4_errcall_fcn() needs three arguments. Documentation for the callback is at: http://www.oracle.com/technology/documentation/berkeley-db/db/api_c/env_set_errcall.html The expected prototype is: void DB_ENV->set_errcall(DB_ENV *dbenv, void (*db_errcall_fcn) (const DB_ENV *dbenv, const char *errpfx, const char *msg)); In ext/dba/dba_db4.c: static void php_dba_db4_errcall_fcn(const char *errpfx, char *msg) should be: static void php_dba_db4_errcall_fcn(const DB_ENV *dbenv, const char *errpfx, const char *msg) Actual result: -------------- Currently a compile warning is given: /home/cjones/phpsrc/php53/ext/dba/dba_db4.c:99: warning: passing argument 2 of 'dbp->set_errcall' from incompatible pointer type -- Edit bug report at http://bugs.php.net/?id=45268&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45268&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45268&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45268&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45268&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45268&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45268&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45268&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45268&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45268&r=support Expected behavior: http://bugs.php.net/fix.php?id=45268&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45268&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45268&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45268&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45268&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45268&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45268&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45268&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45268&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45268&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45268&r=mysqlcfg