php-pecl-jsonc-1.3.1
+
Par Remi le vendredi 14 juin 2013, 08:51 - RPM - Lien permanent
Because of licensing issue (php bug #63520) with standard json extension, part of PHP, I wrote a new extension to replace it.
This new extension, temporarily named jsonc is a drop-in free alternative released under the PHP License.
This is a rename of the previously published php-pecl-json package.
The current extension license is not free as it includes an usage restriction (The Software shall be used for Good, not Evil).
So, this alternative is free, as I prefere to quote Albert Einstein :
The world will not be destroyed by those who do evil, but by those who watch them without doing anything.
Sources are available on github : pecl-json-c
Installation with PHP 5.4:
yum --enablerepo=remi install php-pecl-jsonc
You must disable the default json.so extension (in /etc/php.d/json.ini) before you can enable the new jsonc.so (in /etc/php.d/jsonc.ini).
With PHP 5.5, installation is automatic, as the non-free json extension have been removed, This is same in some Linux distributions:
- Debian (unstable) see Bye bye non-free PHP JSON extension
- Fedora 19
- Mageia (chauldron)
json_encode function is the same than in php 5.5.
json_decode function use the json-c library.
New feature: the JsonIncrementalParser class allow to parse data incrementally without need to load all in memory.
I plan to submit a PHP RFC to switch to this new free implementation in PHP next.Your feedback is expected.
Commentaires
Update to 1.3.2