Bug #69187 [Opn->Asn]: json_last_error return BC in PHP7
| From: | aharvey@php.net | Date: | Wed, 04 Mar 2015 19:36:46 +0000 |
| Subject: | Bug #69187 [Opn->Asn]: json_last_error return BC in PHP7 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-191158@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69187&edit=1
ID: 69187
Updated by: aharvey@php.net
Reported by: hdtfonseca at gmail dot com
Summary: json_last_error return BC in PHP7
-Status: Open
+Status: Assigned
Type: Bug
Package: JSON related
Operating System: linux
PHP Version: master-Git-2015-03-04 (Git)
-Assigned To:
+Assigned To: bukka
Block user comment: N
Private report: N
New Comment:
Jakub, is this expected, and if so, can you update UPGRADING with the situations where this will
happen, please?
Previous Comments:
------------------------------------------------------------------------
[2015-03-04 18:13:44] hdtfonseca at gmail dot com
Description:
------------
The output of the function json_last_error() is different in PHP master in some situations and this
is causing a BC break.
Test script:
---------------
json_decode(null, true);
echo json_last_error();
Expected result:
----------------
0
Actual result:
--------------
4
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69187&edit=1