cvs: php4 /ext/dbase dbase.c
| From: | Sterling Hughes | Date: | Sun, 13 Aug 2000 17:41:21 +0000 |
| Subject: | cvs: php4 /ext/dbase dbase.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-1163@lists.php.net to get a copy of this message | ||
sterling Sun Aug 13 10:41:21 2000 EDT
Modified files:
/php4/ext/dbase dbase.c
Log:
@ Fixed dbase_add_record. (Sterling)
Index: php4/ext/dbase/dbase.c
diff -u php4/ext/dbase/dbase.c:1.30 php4/ext/dbase/dbase.c:1.31
--- php4/ext/dbase/dbase.c:1.30 Sat Jul 22 20:45:24 2000
+++ php4/ext/dbase/dbase.c Sun Aug 13 10:41:20 2000
@@ -233,7 +233,7 @@
/* {{{ proto bool dbase_add_record(int identifier, array data)
Adds a record to the database */
PHP_FUNCTION(dbase_add_record) {
- pval *dbh_id, *fields, *field;
+ pval *dbh_id, *fields, **field;
dbhead_t *dbh;
int dbh_type;
@@ -281,7 +281,7 @@
RETURN_FALSE;
}
- tmp = *field;
+ tmp = **field;
zval_copy_ctor(&tmp);
convert_to_string(&tmp);
sprintf(t_cp, cur_f->db_format, tmp.value.str.val);