#32056 [NEW]: different handles are ignored for DBM databases
| From: | dbai at lantanet dot cz | Date: | Mon, 21 Feb 2005 17:48:39 +0000 |
| Subject: | #32056 [NEW]: different handles are ignored for DBM databases | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-74338@lists.php.net to get a copy of this message | ||
From: dbai at lantanet dot cz
Operating system: Linux
PHP version: 4.3.10
PHP Bug Type: CGI related
Bug description: different handles are ignored for DBM databases
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 bug report at http://bugs.php.net/?id=32056&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32056&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32056&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32056&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32056&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32056&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32056&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32056&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32056&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32056&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32056&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32056&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32056&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32056&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32056&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32056&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32056&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32056&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32056&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32056&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32056&r=mysqlcfg