php.net |  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: robin dot marlow at dps-int dot com
New email:
PHP Version: OS:

 

 [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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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?...

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
> 
 [2001-08-16 19:39 UTC] joey@php.net
Fixed in CVS.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 13:01:28 2024 UTC