[PHP-DEV] Bug #11928 Updated: dbase_replace_record writes (null) in .dbf From: robin.marlow <email protected>
Date: 08/16/01

ID: 11928
User updated by: robin.marlow <email protected>
Reported By: robin.marlow <email protected>
Status: Open
Bug Type: dBase related
Operating System: Win2k
PHP Version: 4.0.6
New Comment:

Any news on this?
Here is the fix, when can this be implemented?...

312c312
< pval *dbh_id, *fields, **field, *recnum;

---
> 	pval *dbh_id, *fields, *field, *recnum;
359,360c359,360
< 		convert_to_string(*field);
< 		sprintf(t_cp, cur_f->db_format, (*field)->value.str.val); 
---
> 		convert_to_string(field);
> 		sprintf(t_cp, cur_f->db_format, field->value.str.val); 
362a363
> 

Previous Comments: ------------------------------------------------------------------------

[2001-07-06 08:03:27] robin.marlow <email protected>

dbase_replace_record writes (null) string as field value. Identical bug with dbase_add_record was fixed in 4.02. See bug #6519 and #10984 (latter still open!!). I need a version where this function worked, or a promise of a fix soon or I'm screwed :o)

------------------------------------------------------------------------

Edit this bug report at http://bugs.php.net/?id=11928&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>