#48335 [Opn]: dba_open can only create files in DBBtree file format
| From: | carsten_sttgt at gmx dot de | Date: | Tue, 19 May 2009 18:22:07 +0000 |
| Subject: | #48335 [Opn]: dba_open can only create files in DBBtree file format | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-2279@lists.php.net to get a copy of this message | ||
ID: 48335
User updated by: carsten_sttgt at gmx dot de
-Summary: dba_open can only create files in DBHash file format
Reported By: carsten_sttgt at gmx dot de
Status: Open
Bug Type: Documentation problem
Operating System: Irrelevant
PHP Version: Irrelevant
New Comment:
Sorry, wrong summary. Changed DBHash to DBBtree.
Previous Comments:
------------------------------------------------------------------------
[2009-05-19 18:14:49] carsten_sttgt at gmx dot de
Description:
------------
Hello,
in addition to bug #48270
After looking in dba_db4.c, PHP is always using DB_BTREE as creation
mode, if you use "c" or "n" as mode parameter for dba_open() and a
database is newly created.
It's not possible to create databases with the DB file format (or
access method) Hash, Queue and Recno. See:
http://www.oracle.com/technology/documentation/berkeley-db/db/api_c/db_open.html
http://www.oracle.com/technology/documentation/berkeley-db/db/gsg/C/accessmethods.html
This limitation should be mentioned in the manual at:
http://de.php.net/manual/en/function.dba-open.php
http://de.php.net/manual/en/dba.requirements.php
Don't have the sources for db3/2. Maybe it's similar there.
Regards,
Carsten
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48335&edit=1