#35009 closed defect (bug) (worksforme)
Function json_last_error_msg() is not compatible with those in PHP 5.5
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 4.4 |
| Component: | General | Keywords: | |
| Focuses: | Cc: |
Description
Function json_last_error_msg() returns "No Error" if no error has occurred but should null as is in PHP 5.5 version of this function.
Change History (3)
#2
@
10 years ago
- Resolution set to worksforme
- Status changed from new to closed
You are right. I've used old version of:
https://github.com/GetResponse/DevZone/blob/master/API/lib/jsonRPCClient.php
where no error returned null.
My mistake.
Note: See
TracTickets for help on using
tickets.
Thanks a lot for your report, upsell!
According to the PHP Documentation,
json_last_error_msg()returns the string "No error" if there was no error, just as the compatibility function in WordPress does.Can you therefore maybe clarify what you mean with "should null" here? Thanks!