Re: implode() in MDB_QueryTool - decimal-point -> comma
| From: | Justin Patrin | Date: | Sun, 14 May 2006 18:46:13 +0000 |
| Subject: | Re: implode() in MDB_QueryTool - decimal-point -> comma | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-24072@lists.php.net to get a copy of this message | ||
On 5/14/06, Lukas Ruetz <lukas.ruetz@gmx.at> wrote:
Am Sonntag, 14. Mai 2006 19:25 schrieben Sie: Lukas Ruetz wrote:"Something" is changing the locale of your numbers. I suggest checking your "float" in various parts of your script. Perhaps it's Flexy, perhaps it's a function that QueryTool calls (it's not the implode, look elsewhere), and perhaps it's something else your script is doing. -- Justin PatrinI'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.