summaryrefslogtreecommitdiff
path: root/ext/dba/dba.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-12-13 14:50:06 +0000
committerMarcus Boerger <helly@php.net>2003-12-13 14:50:06 +0000
commitd1a6deb7851c424108b29f46ef406e04ad2af2a5 (patch)
treed09a9fea50a8ecab0b03a122d9c0cf64323c1666 /ext/dba/dba.c
parent9a98ff3ab50dfd705e296def33347c52e237559d (diff)
downloadphp-git-d1a6deb7851c424108b29f46ef406e04ad2af2a5.tar.gz
- Fixed bug #26304 (Unexpected data loss when opening dba file).
Diffstat (limited to 'ext/dba/dba.c')
-rw-r--r--ext/dba/dba.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dba/dba.c b/ext/dba/dba.c
index 72adca6f52..4ec9ad631a 100644
--- a/ext/dba/dba.c
+++ b/ext/dba/dba.c
@@ -654,7 +654,7 @@ static void php_dba_open(INTERNAL_FUNCTION_PARAMETERS, int persistent)
/* the create/append check will be done on the lock
* when the lib opens the file it is already created
*/
- file_mode = "w+b";
+ file_mode = "a+b";
lock_file_mode = "a+b";
}
break;