PHP 4.0 Bug #6852 Updated: Misc. bugs

From: Date: Sun, 24 Sep 2000 20:34:42 +0000
Subject: PHP 4.0 Bug #6852 Updated: Misc. bugs
Groups: php.dev 
Request: Send a blank email to php-dev+get-33671@lists.php.net to get a copy of this message
ID: 6852 Updated by: jmoore Reported By: kpeters@otaksoft.com Status: Open Bug Type: dBase related Assigned To: Comments: Please do not report multiple bugs in one report, also please use the short desc in the future, it is there for a reason, so that people can see immediately what the bug is about. before posting another bug report please read http://bugs.php.net/bugs-dos-and-donts.php. Thanks anyway James Previous Comments: --------------------------------------------------------------------------- [2000-09-22 08:21:31] kpeters@otaksoft.com //------------------------------------------------------ Bug 1 //------------------------------------------------------ dbase.c, line 622 reads: dbh->db_hlen = sizeof(struct dbf_dhead) + 2 + num_fields * sizeof(struct dbf_dfield); Should read: dbh->db_hlen = sizeof(struct dbf_dhead) + 1 + num_fields * sizeof(struct dbf_dfield); Reason: There is only *one* header record terminator byte (0xD) //------------------------------------------------------ Bug 2 //------------------------------------------------------ dbase.c, line 683 reads: cur_f->db_flen = 9; Should read: cur_f->db_flen = 10; Reason: Memo refs in Xbase are always of length 10 //------------------------------------------------------ Bug 3 //------------------------------------------------------ dbase.c, line 288: Code needs to be inserted below here that truncates the dbf file if deleted records have been encountered, i.e. if rec_cnt <> new_cnt. For this, pack_dbf would need to return a 'trunc_required' flag. Code could also sit in dbf_rec.c function pack_dbf --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=6852

« previous php.dev (#33671) next »