]> granicus.if.org Git - php/commit
Fixed bug #73793 (WDDX uses wrong decimal seperator)
authorChristoph M. Becker <cmbecker69@gmx.de>
Sun, 13 Aug 2017 18:51:53 +0000 (20:51 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Sun, 13 Aug 2017 18:51:53 +0000 (20:51 +0200)
commitf64be0b0135f742df31bc97dd3c04f84f342878e
tree53bcc1a0949206331fe8652b150c38059220fd6d
parent472b25921e2d4c5c96423edac6d1225bb25ed874
Fixed bug #73793 (WDDX uses wrong decimal seperator)

The WDDX specification[1] requires to serialize floats with a decimal
point, but `snprintf()` is locale-dependent and may use a decimal
comma. We fix that afterwards by replacing an eventual comma with a
point.

[1] <http://xml.coverpages.org/wddx0090-dtd-19980928.txt>
NEWS
ext/wddx/tests/bug73793.phpt [new file with mode: 0644]
ext/wddx/wddx.c