PHP 4.0 Bug #6852: Misc. bugs

From: Date: Fri, 22 Sep 2000 12:21:31 +0000
Subject: PHP 4.0 Bug #6852: Misc. bugs
Groups: php.dev 
Request: Send a blank email to php-dev+get-33562@lists.php.net to get a copy of this message
From: kpeters@otaksoft.com Operating system: FreeBSD 4.0 PHP version: 4.0.2 PHP Bug Type: dBase related Bug description: Misc. bugs //------------------------------------------------------ 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

« previous php.dev (#33562) next »