cvs: php4 /ext/dbase dbase.c

From: Date: Mon, 08 Oct 2001 21:51:14 +0000
Subject: cvs: php4 /ext/dbase dbase.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-7727@lists.php.net to get a copy of this message
jimw Mon Oct 8 17:51:14 2001 EDT Modified files: /php4/ext/dbase dbase.c Log: handle 'I' field type, just another name for the 'N' field type (patch from Landon Bradshaw <landon@bradshaw.org>) Index: php4/ext/dbase/dbase.c diff -u php4/ext/dbase/dbase.c:1.50 php4/ext/dbase/dbase.c:1.51 --- php4/ext/dbase/dbase.c:1.50 Tue Sep 25 17:57:51 2001 +++ php4/ext/dbase/dbase.c Mon Oct 8 17:51:12 2001 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: dbase.c,v 1.50 2001/09/25 21:57:51 jeroen Exp $ */ +/* $Id: dbase.c,v 1.51 2001/10/08 21:51:12 jimw Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -473,6 +473,7 @@ case 'D': add_next_index_string(return_value, str_value, 1); break; + case 'I': /* FALLS THROUGH */ case 'N': if (cur_f->db_fdc == 0) { add_next_index_long(return_value, strtol(str_value, NULL, 10)); @@ -564,6 +565,7 @@ case 'D': add_assoc_string(return_value, cur_f->db_fname, str_value, 1); break; + case 'I': /* FALLS THROUGH */ case 'N': if (cur_f->db_fdc == 0) { add_assoc_long(return_value, cur_f->db_fname, strtol(str_value, NULL, 10));

« previous php.cvs (#7727) next »