From: Marcus Boerger Date: Sat, 13 Dec 2003 14:50:06 +0000 (+0000) Subject: - Fixed bug #26304 (Unexpected data loss when opening dba file). X-Git-Tag: php-5.0.0b3RC1~93 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d1a6deb7851c424108b29f46ef406e04ad2af2a5;p=php - Fixed bug #26304 (Unexpected data loss when opening dba file). --- diff --git a/NEWS b/NEWS index eeb6d14295..8401134e12 100644 --- a/NEWS +++ b/NEWS @@ -38,6 +38,7 @@ PHP NEWS - Fixed bug #26534 (stream_get_meta_data() -> Access Violation). (Wez) - Fixed bug #26528 (HTML entities are not being decoded by xml_parse()/xml_parse_into_struct()). (Ilia) +- Fixed bug #26304 (Unexpected data loss when opening dba file). (Marcus) - Fixed bug #26156 (REPLACE_ZVAL_VALUE works on uninit stack-based zvals). (Moriyoshi) - Fixed bug #26083 (Non-working write support in ext/dom). (Ilia) 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;