php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20564 ext/dba/dba_db3.c requires patch to build against DB 4.1.24
Submitted: 2002-11-22 03:34 UTC Modified: 2002-11-23 15:14 UTC
From: rse at engelschall dot com Assigned: helly (profile)
Status: Closed Package: Compile Failure
PHP Version: 4.2.3 OS: Any
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rse at engelschall dot com
New email:
PHP Version: OS:

 

 [2002-11-22 03:34 UTC] rse at engelschall dot 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));

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-23 15:14 UTC] helly@php.net
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.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 14:04:04 2025 UTC