# Reverting as requested.

This commit is contained in:
Jouni Ahto 2000-06-27 22:25:27 +00:00
parent 2fdd934f42
commit 8b8f191e59
4 changed files with 0 additions and 39 deletions

View File

@ -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;
}

View File

@ -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));

View File

@ -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;

View File

@ -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 */