From: Scott MacVicar Date: Wed, 17 Dec 2008 14:46:47 +0000 (+0000) Subject: MFH Test for bug #45791 X-Git-Tag: php-5.3.0beta1~413 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e5587ee4ccbba8f284981eb1b94a8fc0b2e60122;p=php MFH Test for bug #45791 --- diff --git a/ext/json/tests/bug45791.phpt b/ext/json/tests/bug45791.phpt new file mode 100644 index 0000000000..5737ade025 --- /dev/null +++ b/ext/json/tests/bug45791.phpt @@ -0,0 +1,13 @@ +--TEST-- +Bug #45791 (json_decode() does not handle number 0e0) +--FILE-- + +--EXPECT-- +object(stdClass)#1 (1) { + ["zero"]=> + float(0) +}