summaryrefslogtreecommitdiff
path: root/ext/dba/dba_db3.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-11-23 21:11:12 +0000
committerMarcus Boerger <helly@php.net>2002-11-23 21:11:12 +0000
commit1827a58de0d6b368a70cf5377136a9276df6a485 (patch)
tree1a9fac69ba8abef358ba56df3b6e39ead69419d8 /ext/dba/dba_db3.c
parent01e853c2ce7f68c60856de6daf6846d79272fb63 (diff)
downloadphp-git-1827a58de0d6b368a70cf5377136a9276df6a485.tar.gz
Allow db4.0 & db4.1 here. Patch by Ralf Engelschall (rse@engelschall.com)
Diffstat (limited to 'ext/dba/dba_db3.c')
-rw-r--r--ext/dba/dba_db3.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/dba/dba_db3.c b/ext/dba/dba_db3.c
index df9396dede..dd93693d0a 100644
--- a/ext/dba/dba_db3.c
+++ b/ext/dba/dba_db3.c
@@ -74,7 +74,11 @@ DBA_OPEN_FUNC(db3)
}
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 = emalloc(sizeof(*data));