From 07ef5c5526708bc92a324ce994f8cef88bf94685 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Mon, 1 Oct 2007 15:33:29 +0000 Subject: [PATCH] MFB: Added test for bug #42785 --- ext/json/tests/bug42785.phpt | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 ext/json/tests/bug42785.phpt diff --git a/ext/json/tests/bug42785.phpt b/ext/json/tests/bug42785.phpt new file mode 100644 index 0000000000..7bdadbed1e --- /dev/null +++ b/ext/json/tests/bug42785.phpt @@ -0,0 +1,26 @@ +--TEST-- +Bug #42785 (Incorrect formatting of double values with non-english locales) +--SKIPIF-- + +--FILE-- +a = 100.10; +$bar1->b = "foo"; +var_dump(json_encode($bar1)); +?> +--EXPECT-- +string(13) "[100.1,"bar"]" +string(21) "{"a":100.1,"b":"foo"}" -- 2.50.1