php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #61432 json_encode() return value on error not specified
Submitted: 2012-03-19 01:38 UTC Modified: 2012-03-19 02:30 UTC
From: petern at greenmail dot net Assigned: aharvey (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2012-03-19 01:38 UTC] petern at greenmail dot net
Description:
------------
---
From manual page: http://www.php.net/function.json-encode#refsect1-function.json-encode-returnvalues
---

The docs say "Returns a JSON encoded string on success."

But they don't say what's returned in case of failure.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-03-19 02:29 UTC] aharvey@php.net
-Summary: bad docs +Summary: json_encode() return value on error not specified -Status: Open +Status: Assigned -Assigned To: +Assigned To: aharvey
 [2012-03-19 02:30 UTC] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&revision=324345
Log: Fix doc bug #61432 (json_encode() return value on error not specified).
 [2012-03-19 02:30 UTC] aharvey@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.


 [2012-03-19 02:30 UTC] aharvey@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 02:00:02 2026 UTC