From:             rhalstenbach at t-online dot de
Operating system: Windows
PHP version:      4.3.2
PHP Bug Type:     DBM/DBA related
Bug description:  dba_open locking error with db3

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.
-- 
Edit bug report at http://bugs.php.net/?id=23975&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=23975&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=23975&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=23975&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=23975&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=23975&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=23975&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=23975&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=23975&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=23975&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=23975&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23975&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=23975&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=23975&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=23975&r=gnused

Reply via email to