cvs: php-src(PHP_5_3) /ext/dbase dbf_head.c

From: Date: Sun, 18 Nov 2007 14:18:30 +0000
Subject: cvs: php-src(PHP_5_3) /ext/dbase dbf_head.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-47222@lists.php.net to get a copy of this message
iliaa Sun Nov 18 14:18:30 2007 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/dbase dbf_head.c Log: 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.14.4.1.2.7&r2=1.14.4.1.2.7.2.1&diff_format=u Index: php-src/ext/dbase/dbf_head.c diff -u php-src/ext/dbase/dbf_head.c:1.14.4.1.2.7 php-src/ext/dbase/dbf_head.c:1.14.4.1.2.7.2.1 --- php-src/ext/dbase/dbf_head.c:1.14.4.1.2.7 Fri Aug 10 00:30:04 2007 +++ php-src/ext/dbase/dbf_head.c Sun Nov 18 14:18:30 2007 @@ -160,6 +160,9 @@ case 'D': dbf->db_flen = 8; break; + case 'L': + dbf->db_flen = 1; + break; default: dbf->db_flen = get_short(dbfield.dbf_flen); break; @@ -195,6 +198,12 @@ dbfield.dbf_flen[0] = dbf->db_flen; dbfield.dbf_flen[1] = dbf->db_fdc; break; + case 'D': + dbf->db_flen = 8; + break; + case 'L': + dbf->db_flen = 1; + break; default: put_short(dbfield.dbf_flen, dbf->db_flen); }

« previous php.cvs (#47222) next »