|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11928 dbase_replace_record writes (null) in .dbf
Submitted: 2001-07-06 08:03 UTC Modified: 2001-08-16 19:39 UTC
From: robin dot marlow at dps-int dot com Assigned:
Status: Closed Package: dBase related
PHP Version: 4.0.6 OS: Win2k
Private report: No CVE-ID: None
 [2001-07-06 08:03 UTC] robin dot marlow at dps-int dot com
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)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-16 08:52 UTC] robin dot marlow at dps-int dot com
Any news on this?
Here is the fix, when can this be implemented?...

< 	pval *dbh_id, *fields, **field, *recnum;
> 	pval *dbh_id, *fields, *field, *recnum;
< 		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); 
 [2001-08-16 19:39 UTC]
Fixed in CVS.
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Mar 22 07:01:26 2019 UTC