#33776 closed enhancement (maybelater)
Remove json_encode/json_decode and Services_JSON compat
| Reported by: | Rahe | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | External Libraries | Version: | 4.4 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
Hi,
since PHP 5.2 is the minimum version and json extension is bundled and compiled by default (http://php.net/manual/en/json.installation.php) maybe we should considering to remove this compat from the core.
It has been restored 4 years ago (https://core.trac.wordpress.org/ticket/18015) but since the minimal version is 5.2 so this can be done IMHO.
Change History (3)
#2
@
11 years ago
So I cannot disable it in 5.3 compilation ?
Because it's says it's part of the PHP core now.
http://php.net/manual/en/json.requirements.php
Thank you for responding.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Unfortunately the extension can be disabled via the
--disable-alland I believe--disable-jsonin older versions of PHP. Until we bump the minimum requirement to (IIRC, PHP 5.3) we need to keep the compat library around.