#20564 [Opn->Csd]: ext/dba/dba_db3.c requires patch to build against DB 4.1.24

From: Date: Sat, 23 Nov 2002 21:14:50 +0000
Subject: #20564 [Opn->Csd]: ext/dba/dba_db3.c requires patch to build against DB 4.1.24
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-25672@lists.php.net to get a copy of this message
ID: 20564 Updated by: helly@php.net Reported By: rse@engelschall.com -Status: Open +Status: Closed Bug Type: Compile Failure Operating System: Any PHP Version: 4.2.3 -Assigned To: +Assigned To: helly New Comment: This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. I will make a db4 module and try to check the versions in all BerkleyDB modules. Previous Comments: ------------------------------------------------------------------------ [2002-11-22 03:34:57] rse@engelschall.com ext/dba/dba_db3.c builds fine against DB 4.0.x, but requires a little patch to build against DB 4.1.X: --- php-4.2.3/ext/dba/dba_db3.c.orig Thu Apr 18 14:31:19 2002 +++ php-4.2.3/ext/dba/dba_db3.c Fri Nov 22 10:30:24 2002 @@ -74,7 +74,11 @@ } if (db_create(&dbp, NULL, 0) == 0 && +#if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1) + dbp->open(dbp, 0, info->path, NULL, type, gmode, filemode) == 0) { +#else dbp->open(dbp, info->path, NULL, type, gmode, filemode) == 0) { +#endif dba_db3_data *data; data = malloc(sizeof(*data)); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20564&edit=1

« previous php.bugs (#25672) next »