mirror of
https://github.com/php/php-src.git
synced 2026-04-04 22:52:40 +02:00
84fe2cc890e49f40bac7c3ba74b3cfc6dc4cef2f
json_encode() now returns bool(false) for all possible errors, throws the respective warning and also sets the respective json_last_error() error code. Three new error codes have been added: * JSON_ERROR_RECURSION * JSON_ERROR_INF_OR_NAN * JSON_ERROR_UNSUPPORTED_TYPE To get a partial JSON output instead of bool(false) the option JSON_PARTIAL_OUTPUT_ON_ERROR can be specified. In this case the invalid segments will be replaced either by null (for recursion, unsupported type and invalid JSON) or 0 (for Inf and NaN). The warning for invalid UTF-8 stays intact and is thrown also with display_errors = On. If this behavior is undesired this can be remedied later.
…
…
…
The Win32 Build System. See http://wiki.php.net/internals/windows/stepbystepbuild vim:tw=78:sw=1:ts=1:et
Description
⚠️ ARCHIVED: Original GitHub repository no longer exists. Preserved as backup on 2026-01-22T16:25:23.756Z
Languages
C
66%
PHP
31.3%
C++
0.8%
Shell
0.5%
M4
0.4%
Other
0.8%