summaryrefslogtreecommitdiff
path: root/ext/dba/dba_db3.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-11-13 08:59:02 +0000
committerMarcus Boerger <helly@php.net>2003-11-13 08:59:02 +0000
commita18bd05f32c228490d22b7a12813c9ab0ae0b898 (patch)
tree452783644e9011c95d0d070d936a050324cdc5c6 /ext/dba/dba_db3.c
parent58246412a7b653ce33c5026df3215878f96b82d4 (diff)
downloadphp-git-a18bd05f32c228490d22b7a12813c9ab0ae0b898.tar.gz
Bugfix #25794: Cannot open existing hash db3 file with write
Diffstat (limited to 'ext/dba/dba_db3.c')
-rw-r--r--ext/dba/dba_db3.c2
1 files changed, 1 insertions, 1 deletions
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 :