summaryrefslogtreecommitdiff
path: root/ext/dbase/dbf_head.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2007-11-18 14:20:28 +0000
committerIlia Alshanetsky <iliaa@php.net>2007-11-18 14:20:28 +0000
commit13e0fa2ba064962639af9e932f0dc891ac27232e (patch)
tree94626d274d80feb811ad3ed3ad7cff19007fc687 /ext/dbase/dbf_head.c
parent1d3476396020626429d8d24b1aa9a03c296cc2b2 (diff)
downloadphp-git-13e0fa2ba064962639af9e932f0dc891ac27232e.tar.gz
MFB: Fixed bug #42261 (Incorrect lengths for date and boolean data types)
Diffstat (limited to 'ext/dbase/dbf_head.c')
-rw-r--r--ext/dbase/dbf_head.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/dbase/dbf_head.c b/ext/dbase/dbf_head.c
index c99bc1ba1f..374b36ebf9 100644
--- a/ext/dbase/dbf_head.c
+++ b/ext/dbase/dbf_head.c
@@ -195,6 +195,15 @@ int put_dbf_field(dbhead_t *dbh, dbfield_t *dbf)
dbfield.dbf_flen[0] = dbf->db_flen;
dbfield.dbf_flen[1] = dbf->db_fdc;
break;
+ case 'L':
+ dbf->db_flen = 1;
+ break;
+ case 'D':
+ dbf->db_flen = 8;
+ break;
+ case 'L':
+ dbf->db_flen = 1;
+ break;
default:
put_short(dbfield.dbf_flen, dbf->db_flen);
}