From: audwox at jiran dot com Operating system: linux PHP version: 4.3.3 PHP Bug Type: DBM/DBA related Bug description: dba_delete() cant delete record when key is null
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 bug report at http://bugs.php.net/?id=25286&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25286&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25286&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25286&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25286&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25286&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25286&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25286&r=support Expected behavior: http://bugs.php.net/fix.php?id=25286&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25286&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25286&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25286&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25286&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25286&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25286&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25286&r=gnused