Re: implode() in MDB_QueryTool - decimal-point -> comma
| From: | Lukas Ruetz | Date: | Sun, 14 May 2006 18:34:54 +0000 |
| Subject: | Re: implode() in MDB_QueryTool - decimal-point -> comma | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-24071@lists.php.net to get a copy of this message | ||
Am Sonntag, 14. Mai 2006 19:25 schrieben Sie:
> Lukas Ruetz wrote:
> > I'm not sure if this has anything to do with QueryTool but in
> > every case there is something wrong with implode()
> >
> > The symptom is that I can't insert floats because the decimal-points
> > become commas in MDB/QueryTool/Query.php -> add(). var_dump shows me
> > that my floats in the array have the correct type, but if the array
> > is processed by implode() the decimal-points become commas in the
> > resulting string.
> >
> > The strange thing is that implode(', ', $newData) does this incorrect
> > transforming inside Query.php but _not_ if i test this in a simple
> > script where implode() leaves the decimal-point untouched.
>
> A reproducing script would be helpful,
> since I can't see how that implode() call
> would break your script.
>
> Regards,
I wanted to write a simple script that reproduces the error, but like I
said before, in a simple script the error is gone. Finally I could see
that the error occures only if I use the DB-code inside Flexy-page-classes.
Although QueryTool is influenced by "something" it isn't the cause. This is a
really strange error - I will search on tomorrow.
luk