|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-11-18 12:59 UTC] vesely at tana dot it
[2003-11-19 00:32 UTC] vorlon at debian dot org
[2003-11-19 22:14 UTC] vorlon at debian dot org
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
Description: ------------ Opening a file in 'c' mode (see example below) truncates the file!! The docs say '"c" for read/write access and database creation if it doesn't currently exist.' I cannot understand that comment at line 658 in ext/dba/dba.c, as it seems to imply that truncating the database is necessary for locking it (??). Reproduce code: --------------- dba_open("important_data.db", "c", "db4"); Expected result: ---------------- open db (create if doesn't exist) Actual result: -------------- truncated db