php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #54075 Wrong information on json_last_error()
Submitted: 2011-02-22 21:39 UTC Modified: 2011-04-30 15:14 UTC
From: jan at horde dot org Assigned: salathe (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2011-02-22 21:39 UTC] jan at horde dot org
Description:
------------
The docs for json_last_error() only mention its usage for parsing JSON, but it also works for encoding to JSON. This should be mentioned, and a cross link to json_encode() should be added.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-04-30 15:13 UTC] salathe@php.net
Automatic comment from SVN on behalf of salathe
Revision: http://svn.php.net/viewvc/?view=revision&revision=310659
Log: json_last_error() reports on json_encode() errors too (doc #54075)
 [2011-04-30 15:14 UTC] salathe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: salathe
 [2011-04-30 15:14 UTC] salathe@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 05:00:01 2026 UTC