cvs: php4(PHP_4_2_0) /ext/dba dba_db3.c
| From: | Marcus Boerger | Date: | Sat, 23 Nov 2002 21:12:09 +0000 |
| Subject: | cvs: php4(PHP_4_2_0) /ext/dba dba_db3.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-16592@lists.php.net to get a copy of this message | ||
helly Sat Nov 23 16:12:09 2002 EDT
Modified files: (Branch: PHP_4_2_0)
/php4/ext/dba dba_db3.c
Log:
MFH
Index: php4/ext/dba/dba_db3.c
diff -u php4/ext/dba/dba_db3.c:1.16.2.1 php4/ext/dba/dba_db3.c:1.16.2.2
--- php4/ext/dba/dba_db3.c:1.16.2.1 Thu Apr 18 08:31:19 2002
+++ php4/ext/dba/dba_db3.c Sat Nov 23 16:12:08 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: dba_db3.c,v 1.16.2.1 2002/04/18 12:31:19 derick Exp $ */
+/* $Id: dba_db3.c,v 1.16.2.2 2002/11/23 21:12:08 helly Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -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));