#45266 [NEW]: DB_INIT_LOCK not a valid option
| From: | sixd@php.net | Date: | Sat, 14 Jun 2008 00:46:35 +0000 |
| Subject: | #45266 [NEW]: DB_INIT_LOCK not a valid option | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-125768@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: DB_INIT_LOCK not a valid option
Description:
------------
In ext/dba/dba_db4.c, the DB_INIT_LOCK bit is set in the gmode flag
passed into dbp->open(). This is not a valid option for opening a
BDB4 DB. The DBA code may have accidently worked against earlier
versions of BDB because the integer value of the option previously
matched a valid value.
Tested with BDB 4.7.25
For debugging, note in BDB's db-4.7.25/db/db_iface.c the OKFLAGS macro
doesn't include DB_INIT_LOCK.
Reproduce code:
---------------
<?php
$filename = "/tmp/dba1.db";
$d = dba_open($filename, "c", "db4");
?>
Expected result:
----------------
No error
Actual result:
--------------
Warning: dba_open(/tmp/dba1.db,c): Driver initialization failed for
handler: db4: Invalid argument in dba1.php on line 5
--
Edit bug report at http://bugs.php.net/?id=45266&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45266&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45266&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45266&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45266&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=45266&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45266&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45266&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45266&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45266&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45266&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=45266&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=45266&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45266&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45266&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45266&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45266&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45266&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45266&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45266&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45266&r=mysqlcfg