summaryrefslogtreecommitdiff
path: root/ext/dba/dba.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-12-13 15:00:04 +0000
committerMarcus Boerger <helly@php.net>2003-12-13 15:00:04 +0000
commit70ca95aa0eeb9f430c2dc3f466194b4105e8513c (patch)
tree96df4f92c14e695004acf2bcfce9b3dc9c91b273 /ext/dba/dba.c
parentd1a6deb7851c424108b29f46ef406e04ad2af2a5 (diff)
downloadphp-git-70ca95aa0eeb9f430c2dc3f466194b4105e8513c.tar.gz
Revert: need a PHP4.3 solution.
# This solution cannot be backported to PHP 4.3 -- damn!
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 4ec9ad631a..72adca6f52 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 = "a+b";
+ file_mode = "w+b";
lock_file_mode = "a+b";
}
break;