#45267 [NEW]: Revisit locking in DBA for DB4
| From: | sixd@php.net | Date: | Sat, 14 Jun 2008 00:58:05 +0000 |
| Subject: | #45267 [NEW]: Revisit locking in DBA for DB4 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-125769@lists.php.net to get a copy of this message | ||
From: sixd@php.net
Operating system: Linux
PHP version: 5.3CVS-2008-06-14 (CVS)
PHP Bug Type: DBM/DBA related
Bug description: Revisit locking in DBA for DB4
Description:
------------
The locking for DBA with DB4 needs to be revisited.
The way DB_INIT_LOCK and DB_FCNTL_LOCKING are passed to DB4, and
the use of DBA_LOCK_EXT in dba.c seem to be based on the assumption
that BDB will do locking. This isn't true with the way BDB is used by
DBA.
See http://bugs.php.net/bug.php?id=45266 for why
DB_INIT_LOCK isn't
valid. DB_FCNTL_LOCKING is undocumented. It implies that PHP does
locking. It just tells BDB when to release file handles.
Perhaps the easiest solution is for dba.c to use DBA_LOCK_ALL, but
I'm not fully aware of the implications of this flag.
--
Edit bug report at http://bugs.php.net/?id=45267&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45267&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45267&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45267&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45267&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=45267&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45267&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45267&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45267&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45267&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45267&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=45267&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=45267&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45267&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45267&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45267&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45267&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45267&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45267&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45267&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45267&r=mysqlcfg