]> granicus.if.org Git - php/commitdiff
handle 'I' field type, just another name for the 'N' field type (patch
authorjim winstead <jimw@php.net>
Mon, 8 Oct 2001 21:51:12 +0000 (21:51 +0000)
committerjim winstead <jimw@php.net>
Mon, 8 Oct 2001 21:51:12 +0000 (21:51 +0000)
from Landon Bradshaw <landon@bradshaw.org>)

ext/dbase/dbase.c

index 598521695a22ea81b3ecf37de6eeb5de43dd9240..021d855d0df06b700953fc1e33894a8299b72859 100644 (file)
@@ -473,6 +473,7 @@ PHP_FUNCTION(dbase_get_record)
                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 @@ PHP_FUNCTION(dbase_get_record_with_names)
                        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));