#32056 [Opn->Bgs]: different handles are ignored for DBM databases
| From: | helly@php.net | Date: | Mon, 21 Feb 2005 18:28:21 +0000 |
| Subject: | #32056 [Opn->Bgs]: different handles are ignored for DBM databases | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-74345@lists.php.net to get a copy of this message | ||
ID: 32056
Updated by: helly@php.net
Reported By: dbai at lantanet dot cz
-Status: Open
+Status: Bogus
Bug Type: CGI related
-Operating System: Linux
+Operating System: *
-PHP Version: 4.3.10
+PHP Version: *
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
that's a known limitation
as said in the documentation avoid handler 'dbm'
Previous Comments:
------------------------------------------------------------------------
[2005-02-21 18:48:38] dbai at lantanet dot cz
Description:
------------
Functions dba_firstkey/nextkey ignore specified db handle and use last
opened DBM database.
Reproduce code:
---------------
#!/usr/local/bin/php
<?
$db_one = dba_open("datadb_one","r","dbm");
$db_two = dba_open("datadb_two","r","dbm");
if ($key = dba_firstkey($db_one) {
do {
echo("$key\n");
} while ($key = dba_nextkey($db_one));
}
?>
Expected result:
----------------
Keys from datadb_one
Actual result:
--------------
Keys from datadb_two (from last opened database).
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32056&edit=1