]> granicus.if.org Git - php/commitdiff
Fixed bug #42261 (header wrong for date field).
authorIlia Alshanetsky <iliaa@php.net>
Fri, 10 Aug 2007 00:30:04 +0000 (00:30 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Fri, 10 Aug 2007 00:30:04 +0000 (00:30 +0000)
NEWS
ext/dbase/dbf_head.c

diff --git a/NEWS b/NEWS
index 51d03aa9c6eaf9ca60b52df76210985d3ca66e88..902fc83ee771fe8e10c2f4f0b8b2983958357d2a 100644 (file)
--- 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)
index 33e3a425d742b3609b5e653a8259fc5c2154c06c..62296bd5e9395b1ce3eb1ad1231af6993cf00324 100644 (file)
@@ -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;