#28122 [NEW]: dba_open db3: Permission denied

From: Date: Fri, 23 Apr 2004 12:34:25 +0000
Subject: #28122 [NEW]: dba_open db3: Permission denied
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-58641@lists.php.net to get a copy of this message
From: p dot vandenbeld at wanadoo dot nl Operating system: Windows 2000 Pro PHP version: 4.3.6 PHP Bug Type: DBM/DBA related Bug description: dba_open db3: Permission denied Description: ------------ dba_open() failed in combination with berkeley db3 file. db3 handler doesn't seem to work correctly. I tried to call dba_open() on a non-existing database (named database.bd). The function call dba_open("c:\database.db","c","db3") failed. The same goes for option "n" instead of "c". In both cases the file is created with a size of 0 bytes. It seems as if the handler is not able to do anything with the file. Apparently on read we get a permission failure. All users have read and write access to the file. I use Apache 2.0.49 as webserver in combination with PHP as SAPI module. Reproduce code: --------------- $file = "c:\database.db"; $berk_handle = dba_open($file, "c","db3"); dba_close( $berk_handle ); Expected result: ---------------- Code should have - created a database.db file (it actually has ...) - returned a handler Actual result: -------------- Error (note: some of the directories have been shortened): Notice: dba_open(): read: 0x572e14c, 256: Permission denied in C:\wwwroot\berk.inc.php on line 7 Notice: dba_open(): c:\database.db: Permission denied in C:\wwwroot\berk.inc.php on line 7 Warning: dba_open(c:\database.db,c): Driver initialization failed for handler: db3: Permission denied in C:\wwwroot\berk.inc.php on line 7 -- Edit bug report at http://bugs.php.net/?id=28122&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28122&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28122&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28122&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28122&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28122&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28122&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28122&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28122&r=support Expected behavior: http://bugs.php.net/fix.php?id=28122&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28122&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28122&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28122&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28122&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28122&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28122&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28122&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28122&r=float

« previous php.bugs (#58641) next »