mirror of
https://github.com/php/php-src.git
synced 2024-11-28 04:14:26 +08:00
Fix open mode (noticed by FutureQuest, Inc.)
This commit is contained in:
parent
2044fbf59e
commit
bc16d962a6
@ -55,7 +55,7 @@ DBA_OPEN_FUNC(db2)
|
|||||||
|
|
||||||
type = info->mode == DBA_READER ? DB_UNKNOWN :
|
type = info->mode == DBA_READER ? DB_UNKNOWN :
|
||||||
info->mode == DBA_TRUNC ? DB_BTREE :
|
info->mode == DBA_TRUNC ? DB_BTREE :
|
||||||
s ? DB_BTREE : DB_UNKNOWN;
|
!s ? DB_BTREE : DB_UNKNOWN;
|
||||||
|
|
||||||
gmode = info->mode == DBA_READER ? DB_RDONLY :
|
gmode = info->mode == DBA_READER ? DB_RDONLY :
|
||||||
(info->mode == DBA_CREAT && s) ? DB_CREATE :
|
(info->mode == DBA_CREAT && s) ? DB_CREATE :
|
||||||
|
@ -64,7 +64,7 @@ DBA_OPEN_FUNC(db3)
|
|||||||
|
|
||||||
type = info->mode == DBA_READER ? DB_UNKNOWN :
|
type = info->mode == DBA_READER ? DB_UNKNOWN :
|
||||||
info->mode == DBA_TRUNC ? DB_BTREE :
|
info->mode == DBA_TRUNC ? DB_BTREE :
|
||||||
s? DB_BTREE : DB_UNKNOWN;
|
!s? DB_BTREE : DB_UNKNOWN;
|
||||||
|
|
||||||
gmode = info->mode == DBA_READER ? DB_RDONLY :
|
gmode = info->mode == DBA_READER ? DB_RDONLY :
|
||||||
(info->mode == DBA_CREAT && s) ? DB_CREATE :
|
(info->mode == DBA_CREAT && s) ? DB_CREATE :
|
||||||
|
@ -65,7 +65,7 @@ DBA_OPEN_FUNC(db4)
|
|||||||
|
|
||||||
type = info->mode == DBA_READER ? DB_UNKNOWN :
|
type = info->mode == DBA_READER ? DB_UNKNOWN :
|
||||||
info->mode == DBA_TRUNC ? DB_BTREE :
|
info->mode == DBA_TRUNC ? DB_BTREE :
|
||||||
s? DB_BTREE : DB_UNKNOWN;
|
!s? DB_BTREE : DB_UNKNOWN;
|
||||||
|
|
||||||
gmode = info->mode == DBA_READER ? DB_RDONLY :
|
gmode = info->mode == DBA_READER ? DB_RDONLY :
|
||||||
(info->mode == DBA_CREAT && s) ? DB_CREATE :
|
(info->mode == DBA_CREAT && s) ? DB_CREATE :
|
||||||
|
Loading…
Reference in New Issue
Block a user