helly Thu Jul 3 07:23:27 2003 EDT Modified files: (Branch: PHP_4_3) /php-src/ext/dba dba_db2.c dba_db3.c dba_db4.c Log: MFH: Fix open mode (noticed by FutureQuest, Inc.) Index: php-src/ext/dba/dba_db2.c diff -u php-src/ext/dba/dba_db2.c:1.30.2.3 php-src/ext/dba/dba_db2.c:1.30.2.4 --- php-src/ext/dba/dba_db2.c:1.30.2.3 Fri Jan 31 15:10:11 2003 +++ php-src/ext/dba/dba_db2.c Thu Jul 3 07:23:27 2003 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: dba_db2.c,v 1.30.2.3 2003/01/31 20:10:11 helly Exp $ */ +/* $Id: dba_db2.c,v 1.30.2.4 2003/07/03 11:23:27 helly Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -55,7 +55,7 @@ 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 : Index: php-src/ext/dba/dba_db3.c diff -u php-src/ext/dba/dba_db3.c:1.21.2.5 php-src/ext/dba/dba_db3.c:1.21.2.6 --- php-src/ext/dba/dba_db3.c:1.21.2.5 Fri Jan 31 15:10:11 2003 +++ php-src/ext/dba/dba_db3.c Thu Jul 3 07:23:27 2003 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: dba_db3.c,v 1.21.2.5 2003/01/31 20:10:11 helly Exp $ */ +/* $Id: dba_db3.c,v 1.21.2.6 2003/07/03 11:23:27 helly Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -64,7 +64,7 @@ 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 : Index: php-src/ext/dba/dba_db4.c diff -u php-src/ext/dba/dba_db4.c:1.6.2.3 php-src/ext/dba/dba_db4.c:1.6.2.4 --- php-src/ext/dba/dba_db4.c:1.6.2.3 Fri Jan 31 15:10:11 2003 +++ php-src/ext/dba/dba_db4.c Thu Jul 3 07:23:27 2003 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: dba_db4.c,v 1.6.2.3 2003/01/31 20:10:11 helly Exp $ */ +/* $Id: dba_db4.c,v 1.6.2.4 2003/07/03 11:23:27 helly Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -64,7 +64,7 @@ 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 :
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php