From: VJTD3 at VJTD3 dot com
Operating system: linux redhat fedora 10
PHP version: 5.2.9
PHP Bug Type: DBM/DBA related
Bug description: dba_open DB4 DB_HASH does not work
Description:
------------
dba_open when used with the "driver" db4 defaults to btree but hash is
needed. (system databases are in hash not btree.) DB_HASH is not defined
and isn't passed when defined to the creation environment.
db.h
typedef enum {
DB_BTREE=1,
DB_HASH=2,
DB_RECNO=3,
DB_QUEUE=4,
DB_UNKNOWN=5
} DBTYPE;
example showing DB_HASH not defined
<?php
echo (defined(DB_HASH) ? 1 : 0);
?>
Reproduce code:
---------------
<?php
echo (defined(DB_HASH) ? 1 : 0);
?>
Expected result:
----------------
return the proper value and create a database in that format then using
dba_open.
Actual result:
--------------
dba_open does not accept the constant and only uses btree then hash is
needed by system files.
--
Edit bug report at http://bugs.php.net/?id=48270&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=48270&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=48270&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=48270&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=48270&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=48270&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=48270&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=48270&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=48270&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=48270&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=48270&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=48270&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=48270&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=48270&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=48270&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48270&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48270&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=48270&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=48270&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=48270&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=48270&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=48270&r=mysqlcfg