summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Jagielski <jimjag@php.net>2000-06-13 14:37:34 +0000
committerJim Jagielski <jimjag@php.net>2000-06-13 14:37:34 +0000
commit981e1ae7b8f890ba042ba6b50c6a0b8de72f46f3 (patch)
treeac102ce26ea40dba7b03ac63fab483f1a64899f2
parent13692ff3134f40c4125add8f27084f59b936aa01 (diff)
downloadphp-git-981e1ae7b8f890ba042ba6b50c6a0b8de72f46f3.tar.gz
O_APPEND breaks 'c' for DBM files - this is handled
correctly by PHP3, so it's almost a forward'' port :)
-rw-r--r--NEWS2
-rw-r--r--ext/db/db.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index e0d09490dc..fdbe088485 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,8 @@ PHP 4.0 NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 2000, Version 4.0.1
+- Fixed a problem with dbmopen() not handing 'c' correctly with dbm/db/ndbm
+ databases. (JimJag)
- Fixed an initialization problem in the MS-SQL problem that could cause
a crash in mssql_query() (Zeev)
- Upgraded PCRE to version 3.2 and fixed a bug when anchored pattern
diff --git a/ext/db/db.c b/ext/db/db.c
index c1c3fef112..5085012465 100644
--- a/ext/db/db.c
+++ b/ext/db/db.c
@@ -90,7 +90,7 @@
#define DBM_TYPE DBM *
#define DBM_MODE_TYPE int
#define DBM_WRITE_MODE O_RDWR
-#define DBM_CREATE_MODE O_RDWR | O_APPEND | O_CREAT
+#define DBM_CREATE_MODE O_RDWR | O_CREAT
#define DBM_NEW_MODE O_RDWR | O_CREAT | O_TRUNC
#define DBM_DEFAULT_MODE O_RDONLY
#define DBM_OPEN(filename, mode) dbm_open(filename, mode, 0666)