helly           Sat Nov 23 16:11:12 2002 EDT

  Modified files:              
    /php4/ext/dba       dba_db3.c 
  Log:
  Allow db4.0 & db4.1 here. Patch by Ralf Engelschall ([EMAIL PROTECTED])
  
  
Index: php4/ext/dba/dba_db3.c
diff -u php4/ext/dba/dba_db3.c:1.21 php4/ext/dba/dba_db3.c:1.22
--- php4/ext/dba/dba_db3.c:1.21 Wed Nov  6 12:59:03 2002
+++ php4/ext/dba/dba_db3.c      Sat Nov 23 16:11:12 2002
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: dba_db3.c,v 1.21 2002/11/06 17:59:03 sas Exp $ */
+/* $Id: dba_db3.c,v 1.22 2002/11/23 21:11:12 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 = emalloc(sizeof(*data));



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to