summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorTyson Andre <tysonandre775@hotmail.com>2020-04-29 18:35:52 -0400
committerTyson Andre <tysonandre775@hotmail.com>2020-05-27 09:08:43 -0400
commitcc27781f40f1df6234b277d460d9bb20ec540a12 (patch)
tree30e5ea56fce6a8ccc3c330bac8fedbc41767739e /NEWS
parent7f3a296f847de74f20f2e1fc64ad6ea706e33a12 (diff)
downloadphp-git-cc27781f40f1df6234b277d460d9bb20ec540a12.tar.gz
[RFC] Always enable JSON support in php 8.0
Currently, it's possible to disable the json extension with `./configure --disable-json` (for historical reasons that no longer apply). However, JSON is widely used in many use cases - web sites, logging output, and as a data format that can be used to share data with many applications and programming languages, so I'd personally find it useful if it was always enabled. Examples of where this would be useful: - For internal classes to be able to implement `JsonSerializable` which currently requires a hard dependency on the JSON extension. - For PHP users to publish single-file scripts that use json_encode and json_decode and don't require polyfills or less readable var_export output. (polyfills are less efficient and may have issues with recursive data structures) - So that php-src's own modules, tools and test cases can start using JSON if it's a good choice for encoding a value. (same for PECLs) https://wiki.php.net/rfc/jsond mentions that in PHP 5, > The current Json Parser in the json extension does not have a free license > which is a problem for many Linux distros. > This has been referenced at Bug #63520. > That results in not packaging json extension in the many Linux distributions. Starting in php 7.0 with the switch to jsond, It looks like licensing is no longer an issue. Changes: - Remove all flags related to JSON such as `configure --disable-json` - Require that JSON be compiled statically instead of as a shared library Examples of uses of JSON in various distros (backwards incompatible changes such as changing packaging are typically reserved for major versions, and 8.0 is a major version) - JSON is required by `php-cli` or `php` in ubuntu: https://packages.ubuntu.com/focal/php/ - The php-json package has to be installed separately from the PHP binary in Fedora repos. Closes GH-5495
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index aeb5c27126..03b5d7415e 100644
--- a/NEWS
+++ b/NEWS
@@ -73,6 +73,10 @@ PHP NEWS
. Fixed bug #79255 (PHP cannot be compiled with enable JIT).
(Laruence, Dmitry)
+- JSON:
+ . The JSON extension is now an integral part of PHP and cannot be disabled
+ as per RFC: https://wiki.php.net/rfc/always_enable_json (tandre)
+
- LDAP:
. Removed deprecated ldap_sort. (mcmic)