#45266 [Opn->Csd]: DB_INIT_LOCK not a valid option
| From: | sixd@php.net | Date: | Thu, 19 Jun 2008 22:43:00 +0000 |
| Subject: | #45266 [Opn->Csd]: DB_INIT_LOCK not a valid option | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-125904@lists.php.net to get a copy of this message | ||
ID: 45266
Updated by: sixd@php.net
Reported By: sixd@php.net
-Status: Open
+Status: Closed
Bug Type: DBM/DBA related
Operating System: Linux
PHP Version: 5.3CVS-2008-06-14 (CVS)
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2008-06-14 00:46:35] sixd@php.net
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 this bug report at http://bugs.php.net/?id=45266&edit=1