Re: cvs: php-src /ext/dbase dbf_head.c
| From: | Hannes Magnusson | Date: | Sun, 18 Nov 2007 16:13:45 +0000 |
| Subject: | Re: cvs: php-src /ext/dbase dbf_head.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-47225@lists.php.net to get a copy of this message | ||
On Nov 18, 2007 3:20 PM, Ilia Alshanetsky <iliaa@php.net> wrote:
> 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;
This doesn't look right, 'L' twice?
-Hannes