From: Marcus Boerger Date: Sat, 23 Nov 2002 21:12:31 +0000 (+0000) Subject: MFH X-Git-Tag: php-4.3.0RC2~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a90b70eacfa3b81e37b5b15f9c6a8869911d911;p=php MFH --- diff --git a/ext/dba/dba_db3.c b/ext/dba/dba_db3.c index df9396dede..9dfe8ad822 100644 --- a/ext/dba/dba_db3.c +++ b/ext/dba/dba_db3.c @@ -74,9 +74,13 @@ 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)); data->dbp = dbp; data->cursor = NULL;