From ffab827d0160d93765e2b95ee04f30a177ca5163 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Fri, 10 Aug 2007 00:30:04 +0000 Subject: [PATCH] Fixed bug #42261 (header wrong for date field). --- NEWS | 2 ++ ext/dbase/dbf_head.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/NEWS b/NEWS index 51d03aa9c6..902fc83ee7 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,8 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? Aug 2007, PHP 5.2.4 +- Fixed bug #42261 (header wrong for date field). (roberto at spadim dot com + dot br, Ilia) - Fixed bug #42247 (ldap_parse_result() not defined under win32). (Jani) - Fixed bug #42237 (stream_copy_to_stream returns invalid values for mmaped streams). (andrew dot minerd at sellingsource dot com, Ilia) diff --git a/ext/dbase/dbf_head.c b/ext/dbase/dbf_head.c index 33e3a425d7..62296bd5e9 100644 --- a/ext/dbase/dbf_head.c +++ b/ext/dbase/dbf_head.c @@ -157,6 +157,9 @@ int get_dbf_field(dbhead_t *dbh, dbfield_t *dbf) dbf->db_flen = dbfield.dbf_flen[0]; dbf->db_fdc = dbfield.dbf_flen[1]; break; + case 'D': + dbf->db_flen = 8; + break; default: dbf->db_flen = get_short(dbfield.dbf_flen); break; -- 2.40.0