<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0036)http://bugs.php.net/bug.php?id=11928 -->
<HTML><HEAD><TITLE>PHP Bugs:Bug Reporting</TITLE>
<META content="text/html; charset=windows-1250" http-equiv=Content-Type><LINK
href="PHP BugsBug Reporting_soubory/style.css" rel=stylesheet>
<META content="MSHTML 5.00.2920.0" name=GENERATOR></HEAD>
<BODY aLink=#0099ff bgColor=#ffffff leftMargin=0 link=#000033 text=#000000
topMargin=0 vLink=#000033 marginwidth="0" marginheight="0"><A name=TOP></A>
<TABLE border=0 cellPadding=0 cellSpacing=0 height=48 width="100%">
<TBODY>
<TR class=headertop>
<TD align=left rowSpan=2><A href="http://bugs.php.net/"><IMG
alt="PHP Bugs" border=0 hspace=2
src="PHP BugsBug Reporting_soubory/logo-bug.gif" vspace=2></A><BR></TD>
<TD align=right noWrap vAlign=top><FONT color=#ffffff><B>Wednesday,
October 03, 2001 </B> <BR></FONT></TD></TR>
<TR class=headertop>
<TD align=right noWrap vAlign=bottom><A class=menuWhite
href="http://www.php.net/">php.net</A> | <A class=menuWhite
href="http://www.php.net/support.php">support</A> | <A
class=menuWhite
href="http://www.php.net/manual/en/">documentation</A> | <A
class=menuWhite href="http://bugs.php.net/report.php">report a
bug</A> | <A class=menuWhite
href="http://bugs.php.net/search.php">advanced search</A> | <A
class=menuWhite href="http://bugs.php.net/bugstats.php">statistics</A>
<IMG alt="" border=0 height=2
src="PHP BugsBug Reporting_soubory/spacer.gif" width=2><BR></TD></TR>
<TR class=headersep>
<TD colSpan=2><IMG alt="" border=0 height=1
src="PHP BugsBug Reporting_soubory/spacer.gif" width=1><BR></TD></TR>
<TR class=headerbottom>
<FORM action=search.php method=get><INPUT name=cmd type=hidden
value=display>
<TD align=right colSpan=2 noWrap vAlign=top><FONT
color=#ffffff><SMALL>search bugs for</SMALL> <INPUT class=small
name=search_for size=30> <INPUT align=bottom alt=search border=0 cache
height=11 src="PHP BugsBug Reporting_soubory/small_submit_white.gif"
type=image width=11> <BR></FONT></TD></FORM></TR>
<TR class=headersep>
<TD colSpan=2><IMG alt="" border=0 height=1
src="PHP BugsBug Reporting_soubory/spacer.gif"
width=1><BR></TD></TR></TBODY></TABLE>
<TABLE cellPadding=0 cellSpacing=0>
<TBODY>
<TR vAlign=top>
<TD>
<TABLE cellPadding=10 cellSpacing=0 width=600>
<TBODY>
<TR>
<TD vAlign=top><BR>
<H1>Bug id #11928</H1>
<TABLE border=0>
<TBODY>
<TR>
<TH align=right>Status:</TH>
<TD>Closed</TD>
<TD>
<TD><SMALL><A
href="http://bugs.php.net/bug.php?id=11928&edit=2"><TT>User
Modify</TT></A> <A
href="http://bugs.php.net/bug.php?id=11928&edit=1"><TT>Dev
Modify</TT></A></SMALL></TD></TR>
<TR>
<TH align=right>From:</TH>
<TD>robin.marlow@dps-int.com</TD></TR>
<TR>
<TH align=right>Reported:</TH>
<TD>2001-07-06 08:03:27</TD></TR>
<TR>
<TH align=right>Type:</TH>
<TD>dBase related</TD></TR>
<TR>
<TH align=right>OS:</TH>
<TD>Win2k</TD></TR>
<TR>
<TH align=right>PHP Version:</TH>
<TD>4.0.6</TD></TR>
<TR>
<TH align=right>Summary:</TH>
<TD>dbase_replace_record writes (null) in
.dbf</TD></TR></TBODY></TABLE>
<HR color=#000000 noShade SIZE=1>
<B><I>[2001-07-06 08:03:27] robin.marlow@dps-int.com</I></B><BR>
<BLOCKQUOTE>
<BLOCKQUOTE><PRE>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)</PRE></BLOCKQUOTE></BLOCKQUOTE><B><I>[2001-08-16
08:52:13] robin.marlow@dps-int.com</I></B><BR>
<BLOCKQUOTE>
<BLOCKQUOTE><PRE>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
> </PRE></BLOCKQUOTE></BLOCKQUOTE><B><I>[2001-08-16 19:39:26]
joey@php.net</I></B><BR>
<BLOCKQUOTE>
<BLOCKQUOTE><PRE>Fixed in CVS.</PRE></BLOCKQUOTE></BLOCKQUOTE><BR></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR class=headersep>
<TD><IMG alt="" border=0 height=1
src="PHP BugsBug Reporting_soubory/spacer.gif" width=1><BR></TD></TR>
<TR class=headerbottom>
<TD align=right vAlign=bottom><A class=menuWhite
href="http://bugs.php.net/source.php?url=/bug.php">show
source</A> | <A class=menuWhite
href="http://bugs.php.net/credits.php">credits</A> <BR></TD></TR>
<TR class=headersep>
<TD><IMG alt="" border=0 height=1
src="PHP BugsBug Reporting_soubory/spacer.gif"
width=1><BR></TD></TR></TBODY></TABLE>
<TABLE border=0 cellPadding=6 cellSpacing=0 width="100%">
<TBODY>
<TR bgColor=#cccccc vAlign=top>
<TD><SMALL><A href="http://www.php.net/"><IMG align=left alt=PHP border=0
src="PHP BugsBug Reporting_soubory/php-logo.gif"></A> <A
href="http://www.php.net/copyright.php">Copyright © 2001 The PHP
Group</A><BR>All rights reserved.<BR></SMALL></TD>
<TD align=right><SMALL>Last updated: Sun Sep 23 19:27:04 2001
EDT<BR></SMALL><BR></TD></TR></TBODY></TABLE></BODY></HTML>