summaryrefslogtreecommitdiff
path: root/ext/dba/dba.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2005-02-25 23:51:53 +0000
committerMarcus Boerger <helly@php.net>2005-02-25 23:51:53 +0000
commit9ffeb12c4cdb930cc7563589ef954a0c3588f672 (patch)
tree3172f23cb3f3fbb96a30e02e0d96587654267fa2 /ext/dba/dba.c
parent28dbc778d830d89fef27e17965ff6684a0d3f924 (diff)
downloadphp-git-9ffeb12c4cdb930cc7563589ef954a0c3588f672.tar.gz
- Add support for db1 through emulation
# Most probably db4 requires a slightly different detection since functions # are macros which most probably doesn't work with current configure check.
Diffstat (limited to 'ext/dba/dba.c')
-rw-r--r--ext/dba/dba.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/dba/dba.c b/ext/dba/dba.c
index d5a8c6e1fc..9e24670268 100644
--- a/ext/dba/dba.c
+++ b/ext/dba/dba.c
@@ -43,6 +43,7 @@
#include "php_ndbm.h"
#include "php_dbm.h"
#include "php_cdb.h"
+#include "php_db1.h"
#include "php_db2.h"
#include "php_db3.h"
#include "php_db4.h"
@@ -239,6 +240,9 @@ static dba_handler handler[] = {
#if DBA_CDB_BUILTIN
DBA_NAMED_HND(cdb_make, cdb, DBA_STREAM_OPEN|DBA_LOCK_ALL) /* No lock in lib */
#endif
+#if DBA_DB1
+ DBA_HND(db1, DBA_LOCK_ALL) /* No lock in lib */
+#endif
#if DBA_DB2
DBA_HND(db2, DBA_LOCK_ALL) /* No lock in lib */
#endif
@@ -268,6 +272,8 @@ static dba_handler handler[] = {
#define DBA_DEFAULT "db3"
#elif DBA_DB2
#define DBA_DEFAULT "db2"
+#elif DBA_DB1
+#define DBA_DEFAULT "db1"
#elif DBA_GDBM
#define DBA_DEFAULT "gdbm"
#elif DBA_NBBM