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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 09:01:27 2025 UTC