diff options
author | Marcus Boerger <helly@php.net> | 2003-11-13 08:59:02 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2003-11-13 08:59:02 +0000 |
commit | a18bd05f32c228490d22b7a12813c9ab0ae0b898 (patch) | |
tree | 452783644e9011c95d0d070d936a050324cdc5c6 /ext/dba | |
parent | 58246412a7b653ce33c5026df3215878f96b82d4 (diff) | |
download | php-git-a18bd05f32c228490d22b7a12813c9ab0ae0b898.tar.gz |
Bugfix #25794: Cannot open existing hash db3 file with write
Diffstat (limited to 'ext/dba')
-rw-r--r-- | ext/dba/dba_db2.c | 2 | ||||
-rw-r--r-- | ext/dba/dba_db3.c | 2 | ||||
-rw-r--r-- | ext/dba/dba_db4.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/ext/dba/dba_db2.c b/ext/dba/dba_db2.c index c8ffa78ac5..edbb1999eb 100644 --- a/ext/dba/dba_db2.c +++ b/ext/dba/dba_db2.c @@ -55,7 +55,7 @@ DBA_OPEN_FUNC(db2) type = info->mode == DBA_READER ? DB_UNKNOWN : info->mode == DBA_TRUNC ? DB_BTREE : - !s ? DB_BTREE : DB_UNKNOWN; + s ? DB_BTREE : DB_UNKNOWN; gmode = info->mode == DBA_READER ? DB_RDONLY : (info->mode == DBA_CREAT && s) ? DB_CREATE : diff --git a/ext/dba/dba_db3.c b/ext/dba/dba_db3.c index cd86ab3ef5..4f4220c3ee 100644 --- a/ext/dba/dba_db3.c +++ b/ext/dba/dba_db3.c @@ -64,7 +64,7 @@ DBA_OPEN_FUNC(db3) type = info->mode == DBA_READER ? DB_UNKNOWN : info->mode == DBA_TRUNC ? DB_BTREE : - !s? DB_BTREE : DB_UNKNOWN; + s? DB_BTREE : DB_UNKNOWN; gmode = info->mode == DBA_READER ? DB_RDONLY : (info->mode == DBA_CREAT && s) ? DB_CREATE : diff --git a/ext/dba/dba_db4.c b/ext/dba/dba_db4.c index 7594eab80b..c4020e9fc9 100644 --- a/ext/dba/dba_db4.c +++ b/ext/dba/dba_db4.c @@ -65,7 +65,7 @@ DBA_OPEN_FUNC(db4) type = info->mode == DBA_READER ? DB_UNKNOWN : info->mode == DBA_TRUNC ? DB_BTREE : - !s? DB_BTREE : DB_UNKNOWN; + s? DB_BTREE : DB_UNKNOWN; gmode = info->mode == DBA_READER ? DB_RDONLY : (info->mode == DBA_CREAT && s) ? DB_CREATE : |