helly Thu Nov 13 03:59:04 2003 EDT
Modified files:
/php-src/ext/dba dba_db2.c dba_db3.c dba_db4.c
Log:
Bugfix #25794: Cannot open existing hash db3 file with write
Index: php-src/ext/dba/dba_db2.c
diff -u php-src/ext/dba/dba_db2.c:1.35 php-src/ext/dba/dba_db2.c:1.36
--- php-src/ext/dba/dba_db2.c:1.35 Thu Jul 3 07:17:34 2003
+++ php-src/ext/dba/dba_db2.c Thu Nov 13 03:59:02 2003
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: dba_db2.c,v 1.35 2003/07/03 11:17:34 helly Exp $ */
+/* $Id: dba_db2.c,v 1.36 2003/11/13 08:59:02 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.29 php-src/ext/dba/dba_db3.c:1.30
--- php-src/ext/dba/dba_db3.c:1.29 Thu Jul 3 07:17:34 2003
+++ php-src/ext/dba/dba_db3.c Thu Nov 13 03:59:02 2003
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: dba_db3.c,v 1.29 2003/07/03 11:17:34 helly Exp $ */
+/* $Id: dba_db3.c,v 1.30 2003/11/13 08:59:02 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.11 php-src/ext/dba/dba_db4.c:1.12
--- php-src/ext/dba/dba_db4.c:1.11 Thu Jul 3 07:17:34 2003
+++ php-src/ext/dba/dba_db4.c Thu Nov 13 03:59:02 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: dba_db4.c,v 1.11 2003/07/03 11:17:34 helly Exp $ */
+/* $Id: dba_db4.c,v 1.12 2003/11/13 08:59:02 helly Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -65,7 +65,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