https://bugzilla.wikimedia.org/show_bug.cgi?id=72778

--- Comment #2 from Bryan Davis <[email protected]> ---
Block that ignores trailing commas:
<https://github.com/facebook/hhvm/blob/2d64184dd67068e02d3069bbc045bca031498465/hphp/runtime/ext/json/JSON_parser.cpp#L707-L720>

$ /usr/bin/php5 -r 'var_dump( json_decode("[0,]") );'
NULL

$ /usr/bin/hhvm --php -r 'var_dump( json_decode("[0,]") );'
array(1) {
  [0]=>
  int(0)
}


I'm really not sure why it is always enabled. It looks like there is an option
flag to enable/disable the behavior.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to