summaryrefslogtreecommitdiff
path: root/ext/dbase/dbf_head.c
diff options
context:
space:
mode:
authorMichael Wallner <mike@php.net>2006-08-08 15:53:54 +0000
committerMichael Wallner <mike@php.net>2006-08-08 15:53:54 +0000
commite9aaf0b16b85ec350fe97acb8afeaa06328c7365 (patch)
tree2e8a780bfd9763aed5dbec8a64400a8a8c60a37c /ext/dbase/dbf_head.c
parent936ebdbe1f747fd0999acde3e7c995d8a12f7d31 (diff)
downloadphp-git-e9aaf0b16b85ec350fe97acb8afeaa06328c7365.tar.gz
- implement #38357 (dbase_open can't open DBase 3 dbf file)
Diffstat (limited to 'ext/dbase/dbf_head.c')
-rw-r--r--ext/dbase/dbf_head.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/dbase/dbf_head.c b/ext/dbase/dbf_head.c
index be3fe5cd98..24b3d06ac9 100644
--- a/ext/dbase/dbf_head.c
+++ b/ext/dbase/dbf_head.c
@@ -148,6 +148,7 @@ int get_dbf_field(dbhead_t *dbh, dbfield_t *dbf)
dbf->db_type = dbfield.dbf_type;
switch (dbf->db_type) {
case 'N':
+ case 'F':
dbf->db_flen = dbfield.dbf_flen[0];
dbf->db_fdc = dbfield.dbf_flen[1];
break;
@@ -231,6 +232,7 @@ char *get_dbf_f_fmt(dbfield_t *dbf)
case 'N':
case 'L':
case 'D':
+ case 'F':
sprintf(format, "%%%ds", dbf->db_flen);
break;
case 'M':