Date: 09/24/00
- Next message: bdv <email protected>: "[PHP-DEV] PHP 4.0 Bug #6879: Apache 1.3.12, php 4.0.2 not link with GD 1.8.3"
- Previous message: alex <email protected>: "[PHP-DEV] PHP 4.0 Bug #6873: SIGSEGV on SEPARATE_ZVAL_IF_NOT_REF"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 6852
Updated by: jmoore
Reported By: kpeters <email protected>
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 <email protected>
//------------------------------------------------------
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
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: bdv <email protected>: "[PHP-DEV] PHP 4.0 Bug #6879: Apache 1.3.12, php 4.0.2 not link with GD 1.8.3"
- Previous message: alex <email protected>: "[PHP-DEV] PHP 4.0 Bug #6873: SIGSEGV on SEPARATE_ZVAL_IF_NOT_REF"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

