Incorrect locale support for decimal_point

php.internals

David Guerrero

22 years ago
Hi! I opened Bug #25246 some days ago. The bug was closed as "bogus" by Sniper. I think that this issue (locale numeric settings) is not correctly addressed in the php core. And i would like to open a discussion about it, because i think is a very important one. As stated in the bug report, this breaks backward compatibility with 4.2 and older releases. I think that an innapropiate patch broke this in the end of 2002. The question is that databases returns float values with "," or "." based in its own locale (good locale behavior). I can't understand why php could not work with these settings as usual. Why the new "reset the locale setting" is better? There is not a workaround solution for applications manipulating those values (maybe an database function returning floats always with "."). Please, consider this as a genuine bug as this could make a lot of people outside the US, to stick with older versions of PHP. Thanks. David.
-- David Guerrero E-mail: david@boe.es Dpto Tecnologias de la Informacion Telf: 91 384 16 13 B.O.E. (Boletin Oficial del Estado) Ministerio de la Presidencia

Jan Schneider

22 years ago
Zitat von David Guerrero <david@boe.es>:
> Hi! > > I opened Bug #25246 some days ago. The bug was closed as "bogus" by > Sniper. > > I think that this issue (locale numeric settings) is not correctly > addressed in the php core. And i would like to open a discussion about > it, because i think is a very important one. > > As stated in the bug report, this breaks backward compatibility with 4.2 > and older releases. I think that an innapropiate patch broke this in the > end of 2002. > > The question is that databases returns float values with "," or "." > based in its own locale (good locale behavior). I can't understand why > php could not work with these settings as usual. Why the new "reset the > locale setting" is better? > > There is not a workaround solution for applications manipulating those > values (maybe an database function returning floats always with "."). > > Please, consider this as a genuine bug as this could make a lot of > people outside the US, to stick with older versions of PHP.
100% agreed, I already tried to put that on the agenda again, without luck: http://marc.theaimsgroup.com/?t=104993859300001&r=1&w=2 Jan.
-- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft