Doc #75763 [NEW]: json_last_error_msg returns "No error" notice capitalization is wrong

From: Date: Fri, 05 Jan 2018 03:06:57 +0000
Subject: Doc #75763 [NEW]: json_last_error_msg returns "No error" notice capitalization is wrong
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15315@lists.php.net to get a copy of this message
From: themaster5 dot 07 at gmail dot com Operating system: N/A PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:json_last_error_msg returns "No error" notice capitalization is wrong 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 bug report at https://bugs.php.net/bug.php?id=75763&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75763&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75763&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75763&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75763&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75763&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75763&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75763&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75763&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75763&r=support Expected behavior: https://bugs.php.net/fix.php?id=75763&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75763&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75763&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75763&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75763&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75763&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75763&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75763&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75763&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75763&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75763&r=mysqlcfg

« previous php.doc.bugs (#15315) next »