From: Marcus Boerger Date: Sat, 13 Dec 2003 15:00:04 +0000 (+0000) Subject: Revert: need a PHP4.3 solution. X-Git-Tag: php-5.0.0b3RC1~92 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=70ca95aa0eeb9f430c2dc3f466194b4105e8513c;p=php Revert: need a PHP4.3 solution. # This solution cannot be backported to PHP 4.3 -- damn! --- diff --git a/NEWS b/NEWS index 8401134e12..eeb6d14295 100644 --- a/NEWS +++ b/NEWS @@ -38,7 +38,6 @@ 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 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;