summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/dba/dba.c3
-rw-r--r--ext/dba/dba_db2.c15
-rw-r--r--ext/dba/dba_db3.c15
-rw-r--r--ext/dba/php_dba.h6
4 files changed, 0 insertions, 39 deletions
diff --git a/ext/dba/dba.c b/ext/dba/dba.c
index 934b801e7e..b84de998c9 100644
--- a/ext/dba/dba.c
+++ b/ext/dba/dba.c
@@ -191,9 +191,6 @@ static PHP_MINIT_FUNCTION(dba)
zend_hash_init(&ht_keys, 0, NULL, NULL, 1);
GLOBAL(le_db) = register_list_destructors(dba_close, NULL);
GLOBAL(le_pdb) = register_list_destructors(NULL, dba_close);
- REGISTER_LONG_CONSTANT("DBA_BTREE", DBA_BTREE, CONST_CS | CONST_PERSISTENT);
- REGISTER_LONG_CONSTANT("DBA_HASH", DBA_HASH, CONST_CS | CONST_PERSISTENT);
- REGISTER_LONG_CONSTANT("DBA_RECNO", DBA_RECNO, CONST_CS | CONST_PERSISTENT);
return SUCCESS;
}
diff --git a/ext/dba/dba_db2.c b/ext/dba/dba_db2.c
index 67eb366c60..de68974358 100644
--- a/ext/dba/dba_db2.c
+++ b/ext/dba/dba_db2.c
@@ -76,21 +76,6 @@ DBA_OPEN_FUNC(db2)
filemode = (*info->argv[0])->value.lval;
}
- if(info->argc > 1
- && ((info->mode == DBA_CREAT && type != DB_UNKNOWN)
- || info->mode == DBA_TRUNC)) {
- convert_to_long_ex(info->argv[1]);
- switch ((*info->argv[1])->value.lval) {
- case DBA_HASH:
- type = DB_HASH;
- break;
- case DBA_BTREE:
- default:
- type = DB_BTREE;
- break;
- }
- }
-
if(!db_open(info->path, type, gmode, filemode, NULL, NULL, &dbp)) {
info->dbf = malloc(sizeof(dba_db2_data));
memset(info->dbf, 0, sizeof(dba_db2_data));
diff --git a/ext/dba/dba_db3.c b/ext/dba/dba_db3.c
index 809c5408eb..ae1405705d 100644
--- a/ext/dba/dba_db3.c
+++ b/ext/dba/dba_db3.c
@@ -76,21 +76,6 @@ DBA_OPEN_FUNC(db3)
filemode = (*info->argv[0])->value.lval;
}
- if(info->argc > 1
- && ((info->mode == DBA_CREAT && type != DB_UNKNOWN)
- || info->mode == DBA_TRUNC)) {
- convert_to_long_ex(info->argv[1]);
- switch ((*info->argv[1])->value.lval) {
- case DBA_HASH:
- type = DB_HASH;
- break;
- case DBA_BTREE:
- default:
- type = DB_BTREE;
- break;
- }
- }
-
if (db_create(&dbp, NULL, 0) == 0 &&
dbp->open(dbp, info->path, NULL, type, gmode, filemode) == 0) {
dba_db3_data *data;
diff --git a/ext/dba/php_dba.h b/ext/dba/php_dba.h
index 0eeb38c027..a504e972d1 100644
--- a/ext/dba/php_dba.h
+++ b/ext/dba/php_dba.h
@@ -41,12 +41,6 @@ typedef enum {
DBA_CREAT
} dba_mode_t;
-typedef enum {
- DBA_BTREE = 1,
- DBA_HASH,
- DBA_RECNO
-} dba_type_t;
-
typedef struct dba_info {
/* public */
void *dbf; /* ptr to private data or whatever */