Doc #75763 [Opn->Csd]: json_last_error_msg returns "No error" notice capitalization is wrong
| From: | salathe@php.net | Date: | Fri, 05 Jan 2018 08:57:57 +0000 |
| Subject: | Doc #75763 [Opn->Csd]: json_last_error_msg returns "No error" notice capitalization is wrong | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-15316@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75763&edit=1
ID: 75763
Updated by: salathe@php.net
Reported by: themaster5 dot 07 at gmail dot com
Summary: json_last_error_msg returns "No error" notice
capitalization is wrong
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
Operating System: N/A
PHP Version: Irrelevant
-Assigned To:
+Assigned To: salathe
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2018-01-05 08:57:21] salathe@php.net
Automatic comment from SVN on behalf of salathe
Revision: http://svn.php.net/viewvc/?view=revision&revision=343770
Log: fix capitalisation of "No error" response from json_last_error_msg() (doc bug
#75763)
------------------------------------------------------------------------
[2018-01-05 03:06:55] themaster5 dot 07 at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.json-last-error-msg
---
The Paragraph:
Returns the error message on success, "No Error" if no error has occurred, or FALSE on
failure.
Should be changed to:
Returns the error message on success, "No error" if no error has occurred, or FALSE on
failure.
Notice the difference in capitalization of the word 'error'.
Test script:
---------------
$json_error_msg = json_last_error_msg();
if($json_error_msg==="No Error"){
print "Documentation is correct";
} else {
print "Documentation is wrong. Actual return is '".$json_error_msg."'
notice capitalization of error";
}
Expected result:
----------------
Documentation is correct
Actual result:
--------------
Documentation is wrong. Actual return is 'No error' notice capitalization of error
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75763&edit=1