Comments, tests, and tweaks for JSON decoding quirks
authorBill Pirkle <bpirkle@wikimedia.org>
Wed, 7 Nov 2018 19:04:21 +0000 (13:04 -0600)
committerBill Pirkle <bpirkle@wikimedia.org>
Wed, 7 Nov 2018 19:04:21 +0000 (13:04 -0600)
commit5a166f00d8bb979074a30d4aaa6485c7e19fd100
treefd4a14cd66e912aabba03723fb55e32754af7d78
parentd6016fa1f985120829cfeb596571dd844da8b4e3
Comments, tests, and tweaks for JSON decoding quirks

PHP JSON decoding has surprising behavior on some edge cases.
Documented this via comments, added related tests, and tweaked
related CommentStore code.

Bug: T206411
Change-Id: I6927fdaf616b37a04d81a638a0ed257afac9b844
includes/CommentStore.php
includes/json/FormatJson.php
tests/phpunit/includes/json/FormatJsonTest.php