]> granicus.if.org Git - php/commitdiff
Created shorter/sensible key names for dbase_get_header_info
authorZak Greant <zak@php.net>
Wed, 16 Jul 2003 11:08:03 +0000 (11:08 +0000)
committerZak Greant <zak@php.net>
Wed, 16 Jul 2003 11:08:03 +0000 (11:08 +0000)
 * 'decimal places' becomes 'precision'
 * 'printf format' becomes 'format'
 * 'record offset' becomes 'offset'

 BTW No docs have been committed for this function yet, nor is it part of any
 release. This change should affect no users.

ext/dbase/dbase.c

index 4874eff26f12dd9d107a9678e235e1b80415cd3e..db1238544a8d0ae7c71e51827a1106b79a9de176 100644 (file)
@@ -793,13 +793,13 @@ PHP_FUNCTION(dbase_get_header_info)
                add_assoc_long(row, "length", cur_f->db_flen);
                
                /* number of decimals in field */
-               add_assoc_long(row, "decimal places", cur_f->db_fdc);
+               add_assoc_long(row, "precision", cur_f->db_fdc);
 
                /* format for printing %s etc */
-               add_assoc_string(row, "printf format", cur_f->db_format, 1);
+               add_assoc_string(row, "format", cur_f->db_format, 1);
                
                /* offset within record */
-               add_assoc_long(row, "record offset", cur_f->db_foffset);
+               add_assoc_long(row, "offset", cur_f->db_foffset);
        }
 }
 /* }}} */