Since gerrit 50140 was merged, MediaWiki has required the JSON PHP extension
to run. Unfortunately, I just found out the extension has a component with
a license that the Free Software Foundation considers to be non-free,
even though the extension is one of those bundled with PHP (and would
presumably be covered by the PHP License, which is a free license).
https://github.com/php/php-src/blob/master/ext/json/JSON_parser.c#L18
https://bugs.php.net/bug.php?id=63520
https://www.gnu.org/licenses/license-list.html#JSON
Until such time a version of the native JSON extension exists that does
not depend on any non-free component, MediaWiki should continue to provide
a pure PHP fallback under the terms of the GPL or another free license, or
at least make one easy to use if necessary.
Ideally, the fallback should implement the underlying json_encode and
json_decode functions, so MediaWiki extensions that call them directly
will work as intended.
Version: 1.22.0
Severity: blocker
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=47356
https://bugzilla.wikimedia.org/show_bug.cgi?id=26818
https://bugzilla.wikimedia.org/show_bug.cgi?id=54774