PHP 4.0 Bug #6852 Updated: Misc. bugs

From: Date: Fri, 22 Sep 2000 14:01:11 +0000
Subject: PHP 4.0 Bug #6852 Updated: Misc. bugs
Groups: php.dev 
Request: Send a blank email to php-dev+get-33504@lists.php.net to get a copy of this message
ID: 6852 User Update by: kpeters@otaksoft.com Status: Open Bug Type: dBase related Description: Misc. bugs 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 (#33504) next »