]> granicus.if.org Git - php/commitdiff
Revert: need a PHP4.3 solution.
authorMarcus Boerger <helly@php.net>
Sat, 13 Dec 2003 15:00:04 +0000 (15:00 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 13 Dec 2003 15:00:04 +0000 (15:00 +0000)
# This solution cannot be backported to PHP 4.3 -- damn!

NEWS
ext/dba/dba.c

diff --git a/NEWS b/NEWS
index 8401134e12536cee5306f215905b94d3a3e8dc8c..eeb6d14295d017a404422c4de3f3c09ad37b0d04 100644 (file)
--- 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)
index 4ec9ad631ab16da2d53b13ae4802d65fbb59242b..72adca6f52aab8782fef74693b174f36ebdeac4d 100644 (file)
@@ -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;