#27799 closed defect (bug) (wontfix)
json_last_error is not provided by JSON compatibility layer
Reported by: | rmccue | Owned by: | rmccue |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | General | Keywords: | dev-feedback has-patch needs-refresh |
Focuses: | javascript | Cc: |
Description
The json_last_error function isn't provided in wp-includes/compat.php
with the rest of the JSON compatibility functions, despite being available in PHP's JSON since 5.3.
Looking into this, it *should* be trivial to add error handling, but possibly non-trivial for exact compatibility with PHP.
Attachments (1)
Change History (11)
This ticket was mentioned in Slack in #core-restapi by rachelbaker. View the logs.
9 years ago
#3
@
9 years ago
- Milestone changed from Awaiting Review to 4.3
- Owner set to rmccue
- Status changed from new to assigned
Let's get it done.
This ticket was mentioned in Slack in #core by wonderboymusic. View the logs.
9 years ago
#7
@
7 years ago
- Keywords has-patch needs-refresh added; needs-patch removed
Stumbled upon this while looking at the json_last_error_msg()
compat function.
@rmccue Wanna give 27799.diff a go?
#8
@
5 years ago
May I suggest for this ticket to be closed ? Now PHP 5.6.20 is the new minimum PHP version, AFAICS this is no longer relevant.
Note: See
TracTickets for help on using
tickets.
Somebody want to make a patch?