Doc #67548 [Opn->Csd]: Docs says json_last_error_msg should return null, but it returns 'No Error'
| From: | aharvey@php.net | Date: | Tue, 01 Jul 2014 19:56:11 +0000 |
| Subject: | Doc #67548 [Opn->Csd]: Docs says json_last_error_msg should return null, but it returns 'No Error' | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-11325@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=67548&edit=1
ID: 67548
Updated by: aharvey@php.net
Reported by: petah dot p at gmail dot com
Summary: Docs says json_last_error_msg should return null,
but it returns 'No Error'
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: JSON related
PHP Version: 5.5.14
-Assigned To:
+Assigned To: aharvey
Block user comment: N
Private report: N
New Comment:
The fix for this bug has been committed.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
I don't think that's what the text was intended to mean, but I've clarified it.
Previous Comments:
------------------------------------------------------------------------
[2014-07-01 19:55:58] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&revision=334064
Log: Clarify json_last_error_msg()'s return values.
Fixes doc bug #67548 (Docs says json_last_error_msg should return null, but it
returns 'No Error').
------------------------------------------------------------------------
[2014-06-30 23:05:51] petah dot p at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.json-last-error-msg
---
Docs says json_last_error_msg should return null, but it returns 'No Error'
http://viper-7.com/xKaEFf
Test script:
---------------
<pre><?php
var_dump(json_decode('{}'));
var_dump(json_last_error_msg());
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=67548&edit=1