Doc #73525 [NEW]: Not all JSON_ERROR_* constants are documented

From: Date: Tue, 15 Nov 2016 09:40:23 +0000
Subject: Doc #73525 [NEW]: Not all JSON_ERROR_* constants are documented
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-14102@lists.php.net to get a copy of this message
From: mfischer Operating system: PHP version: Irrelevant Package: *General Issues Bug Type: Documentation Problem Bug description:Not all JSON_ERROR_* constants are documented Description: ------------ Looking at http://php.net/manual/en/function.json-last-error.php , right now the following constants are documented: JSON_ERROR_NONE JSON_ERROR_DEPTH JSON_ERROR_STATE_MISMATCH JSON_ERROR_CTRL_CHAR JSON_ERROR_SYNTAX JSON_ERROR_UTF8 JSON_ERROR_RECURSION JSON_ERROR_INF_OR_NAN JSON_ERROR_UNSUPPORTED_TYPE Using PHP 7.0.12 (sorry, don't have 7.0.13 which was already released) I see two more (at the end): $ php -r 'var_dump(get_defined_constants());' | grep JSON_ERROR_ ["JSON_ERROR_NONE"]=> ["JSON_ERROR_DEPTH"]=> ["JSON_ERROR_STATE_MISMATCH"]=> ["JSON_ERROR_CTRL_CHAR"]=> ["JSON_ERROR_SYNTAX"]=> ["JSON_ERROR_UTF8"]=> ["JSON_ERROR_RECURSION"]=> ["JSON_ERROR_INF_OR_NAN"]=> ["JSON_ERROR_UNSUPPORTED_TYPE"]=> ["JSON_ERROR_INVALID_PROPERTY_NAME"]=> ["JSON_ERROR_UTF16"]=> Testing with https://3v4l.org/niJ9G it seems there are now constants introduced with PHP7 -- Edit bug report at https://bugs.php.net/bug.php?id=73525&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73525&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73525&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73525&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=73525&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=73525&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=73525&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=73525&r=needscript Try newer version: https://bugs.php.net/fix.php?id=73525&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=73525&r=support Expected behavior: https://bugs.php.net/fix.php?id=73525&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=73525&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=73525&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=73525&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73525&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=73525&r=dst IIS Stability: https://bugs.php.net/fix.php?id=73525&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=73525&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=73525&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=73525&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=73525&r=mysqlcfg

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