cvs: php-src /ext/dbase dbf_head.c
| From: | Ilia Alshanetsky | Date: | Sun, 18 Nov 2007 14:20:28 +0000 |
| Subject: | cvs: php-src /ext/dbase dbf_head.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-47224@lists.php.net to get a copy of this message | ||
iliaa Sun Nov 18 14:20:28 2007 UTC
Modified files:
/php-src/ext/dbase dbf_head.c
Log:
MFB: Fixed bug #42261 (Incorrect lengths for date and boolean data types)
http://cvs.php.net/viewvc.cgi/php-src/ext/dbase/dbf_head.c?r1=1.21&r2=1.22&diff_format=u
Index: php-src/ext/dbase/dbf_head.c
diff -u php-src/ext/dbase/dbf_head.c:1.21 php-src/ext/dbase/dbf_head.c:1.22
--- php-src/ext/dbase/dbf_head.c:1.21 Fri Aug 10 08:56:23 2007
+++ php-src/ext/dbase/dbf_head.c Sun Nov 18 14:20:28 2007
@@ -195,6 +195,15 @@
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);
}