From: a dot stagl at gmx dot at
Operating system: Win2k
PHP version: 4.3.3
PHP Bug Type: DBM/DBA related
Bug description: Opening existing CDB does not work

Description:
------------
I'm trying to open the contacts-databse from a nokia 9210i mobile, but it
doesn't work.


Reproduce code:
---------------
$db_conn = dba_open("contacts.cdb","r","cdb");
if (!$db_conn) die ("opening failed");
$key = dba_firstkey ($db_conn);
while ($key != false)
{
echo $key."<br />";
echo dba_fetch ($key, $db_conn)."<br /><br />";
$key = dba_nextkey ($db_conn);
}
dba_close($db_conn);

Expected result:
----------------
....to get a list of key-value pairs.

Actual result:
--------------
The code didn't produce the expected output nor any error message. It
seems that the commands dba_firstkey and dba_nextkey always return false
instead of a key.


--
Edit bug report at [url]http://bugs.php.net/?id=26035&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=26035&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=26035&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=26035&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=26035&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=26035&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=26035&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=26035&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=26035&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=26035&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=26035&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=26035&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=26035&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=26035&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=26035&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=26035&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=26035&r=float[/url]