ID: 26035 User updated by: a dot stagl at gmx dot at Reported By: a dot stagl at gmx dot at -Status: Feedback +Status: Open Bug Type: DBM/DBA related Operating System: Win2k PHP Version: 4.3.3 New Comment:
Unfortunatly, I cannot provide you the DB which I'm refering to, because - as already mentioned - it is the contacts-database from a nokia 9210i which contains sensitive data. I tried to get a sample contacts.cdb directly from nokia, but they haven't been supportive :-( But I found the following two cdb-databases on the internet: http://web.mit.edu/cascon/updates/cascon.cdb (does not work with the provided code) http://cvs.sourceforge.net/viewcvs.py/*checkout*/cdbfile/cdbFile/cdbFile/Attic/test.cdb?rev=1.1.1.1 (works fine with my code) HTH Previous Comments: ------------------------------------------------------------------------ [2003-10-30 20:36:06] [EMAIL PROTECTED] Please provide the information HERE, not via private mail! ------------------------------------------------------------------------ [2003-10-30 10:12:05] a dot stagl at gmx dot at I sent it to yob by PM. ------------------------------------------------------------------------ [2003-10-30 08:21:03] [EMAIL PROTECTED] Could you please provide the database in question. ------------------------------------------------------------------------ [2003-10-30 05:30:43] a dot stagl at gmx dot at 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 this bug report at http://bugs.php.net/?id=26035&edit=1