diff options
Diffstat (limited to 'ext/dbase')
| -rw-r--r-- | ext/dbase/dbase.c | 4 | ||||
| -rw-r--r-- | ext/dbase/dbf_head.c | 9 | ||||
| -rw-r--r-- | ext/dbase/php_dbase.h | 4 |
3 files changed, 13 insertions, 4 deletions
diff --git a/ext/dbase/dbase.c b/ext/dbase/dbase.c index 3a42c4526..aeb950fec 100644 --- a/ext/dbase/dbase.c +++ b/ext/dbase/dbase.c @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2007 The PHP Group | + | Copyright (c) 1997-2008 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: dbase.c,v 1.74.2.2.2.9 2007/02/25 23:17:12 tony2001 Exp $ */ +/* $Id: dbase.c,v 1.74.2.2.2.10 2007/12/31 07:20:05 sebastian Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/ext/dbase/dbf_head.c b/ext/dbase/dbf_head.c index 62296bd5e..010fccf87 100644 --- a/ext/dbase/dbf_head.c +++ b/ext/dbase/dbf_head.c @@ -160,6 +160,9 @@ int get_dbf_field(dbhead_t *dbh, dbfield_t *dbf) 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 @@ int put_dbf_field(dbhead_t *dbh, dbfield_t *dbf) 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); } diff --git a/ext/dbase/php_dbase.h b/ext/dbase/php_dbase.h index 0fd8ef707..e3e75d234 100644 --- a/ext/dbase/php_dbase.h +++ b/ext/dbase/php_dbase.h @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2007 The PHP Group | + | Copyright (c) 1997-2008 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_dbase.h,v 1.15.2.1.2.1 2007/01/01 09:36:00 sebastian Exp $ */ +/* $Id: php_dbase.h,v 1.15.2.1.2.2 2007/12/31 07:20:05 sebastian Exp $ */ #ifndef PHP_DBASE_H #define PHP_DBASE_H |
