ID: 25286 User updated by: audwox at jiran dot com Reported By: audwox at jiran dot com Status: Closed Bug Type: DBM/DBA related Operating System: linux PHP Version: 4.3.3 Assigned To: helly New Comment:
My problem is that dba_firstkey() always return false even if exists data when null key was inserted. So, I did not earned any data. Thank you. Previous Comments: ------------------------------------------------------------------------ [2003-08-30 05:12:48] [EMAIL PROTECTED] It works in 4.3.3, 5.0 with at least handlers db3, db4 and flatfile. The insert/delete happens in generic code first and is then propagated to the handlers. Anyway your problem is that you can't even insert data with key=NULL. Try var_dump(dba_insert(NULL,....)) and you will see that it returns false as 'action not taken'. ------------------------------------------------------------------------ [2003-08-28 03:21:47] audwox at jiran dot com Description: ------------ Hi. dba_firstkey() return false when cant any key and also null key in data. But I can see some data in data file using db_dump(bdb management utility by sleeycat). When I was use dba_delete() function like below with php 4.3.3, I cant delete record. <? dba_delete(null, $dbid); ?> But When I use dba_delete() function with php 4.3.2, dba_delete() success. Sorry for my english. Thank you. Reproduce code: --------------- <? /* with php 4.3.2 */ $dbid = dba_open("test.db", "w", "db3"); dba_insert(null, null, $dbid); dba_close($dbid); /* now, null data exists into test.db */ /* with php 4.3.3 */ $dbid = dba_open("test.db", "w", "db3"); dba_delete(null, $dbid); dba_close($dbid); /* but still exists null data into test.db. dba_delete() cant delete null data. And now, dba_firstkey() always fail to get first key. dab_firstkey() always return false. But with db_dump utility can see all data. */ ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25286&edit=1