|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-06-10 05:19 UTC] adam at saki dot com dot au
[2003-06-15 08:56 UTC] helly@php.net
[2003-08-19 04:48 UTC] courtois at nouvo dot com
[2003-08-23 16:09 UTC] fabio_heller at yahoo dot it
[2003-11-13 04:07 UTC] helly@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 05:00:02 2025 UTC |
The new locking feature (introduced with 4.3.0) does not work correctly in default mode "d". Very annoying because it is the default mode ... Example: <?php $d1 = dba_open("c:/www/htdocs/dbfile", "c", "db3); // Old syntax, specifying no locking mode means mode "d", i.e. same as "cd" if ($d1 === FALSE) die("Could not open dbfile"); ?> Same problem for mode "w". It works correctly for locking mode "l" and for suppressing locking via "-". Obviously the dba_open() function tries to create a lock file with exactly the same name as the database file - what fails of course. Tested on WindowsXP with db3, but i think it will fail for every db-driver (except gdbm) on every OS.