helly           Sat Dec 13 09:50:07 2003 EDT

  Modified files:              
    /php-src    NEWS 
    /php-src/ext/dba    dba.c 
  Log:
  - Fixed bug #26304 (Unexpected data loss when opening dba file).
  
  
Index: php-src/NEWS
diff -u php-src/NEWS:1.1532 php-src/NEWS:1.1533
--- php-src/NEWS:1.1532 Fri Dec 12 23:07:18 2003
+++ php-src/NEWS        Sat Dec 13 09:50:05 2003
@@ -38,6 +38,7 @@
 - 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: php-src/ext/dba/dba.c
diff -u php-src/ext/dba/dba.c:1.103 php-src/ext/dba/dba.c:1.104
--- php-src/ext/dba/dba.c:1.103 Thu Nov 13 14:08:41 2003
+++ php-src/ext/dba/dba.c       Sat Dec 13 09:50:06 2003
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: dba.c,v 1.103 2003/11/13 19:08:41 helly Exp $ */
+/* $Id: dba.c,v 1.104 2003/12/13 14:50:06 helly Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -654,7 +654,7 @@
                                /* 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;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to