php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #48335 dba_open can only create files in DBBtree file format
Submitted: 2009-05-19 18:14 UTC Modified: 2009-11-19 10:20 UTC
From: carsten_sttgt at gmx dot de Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2009-05-19 18:14 UTC] 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



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-05-19 18:22 UTC] carsten_sttgt at gmx dot de
Sorry, wrong summary. Changed DBHash to DBBtree.
 [2009-11-19 10:20 UTC] svn@php.net
Automatic comment from SVN on behalf of vrana
Revision: http://svn.php.net/viewvc/?view=revision&revision=290970
Log: Created in BTree mode (bug #48335)
 [2009-11-19 10:20 UTC] vrana@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Jun 16 23:00:01 2026 UTC