|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-21 19:28 UTC] helly@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 22:00:01 2025 UTC |
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).