cvs: php4 /ext/dbase dbase.c

From: Date: Thu, 16 Aug 2001 23:44:10 +0000
Subject: cvs: php4 /ext/dbase dbase.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-6902@lists.php.net to get a copy of this message
joey Thu Aug 16 19:44:10 2001 EDT Modified files: /php4/ext/dbase dbase.c Log: @- Fix a crash in dbase_replace_record (Patch by robin.marlow@dps-int.com). This fixes Bug id #11928. Index: php4/ext/dbase/dbase.c diff -u php4/ext/dbase/dbase.c:1.47 php4/ext/dbase/dbase.c:1.48 --- php4/ext/dbase/dbase.c:1.47 Tue Aug 14 07:07:18 2001 +++ php4/ext/dbase/dbase.c Thu Aug 16 19:44:10 2001 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: dbase.c,v 1.47 2001/08/14 11:07:18 sniper Exp $ */ +/* $Id: dbase.c,v 1.48 2001/08/16 23:44:10 joey Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -321,7 +321,7 @@ Replaces a record to the database */ PHP_FUNCTION(dbase_replace_record) { - pval *dbh_id, *fields, *field, *recnum; + pval *dbh_id, *fields, **field, *recnum; dbhead_t *dbh; int dbh_type; @@ -368,8 +368,8 @@ efree(cp); RETURN_FALSE; } - convert_to_string(field); - sprintf(t_cp, cur_f->db_format, field->value.str.val); + convert_to_string_ex(field); + sprintf(t_cp, cur_f->db_format, Z_STRVAL_PP(field)); t_cp += cur_f->db_flen; }

« previous php.cvs (#6902) next »