1
0
mirror of https://github.com/php/php-src.git synced 2026-04-06 23:53:30 +02:00
Files
archived-php-src/ext/json/tests/json_encode_basic.phpt
Nikita Popov 4662151ea7 Improve JSON error handling
json_encode() no longer throws warnings. Instead only the error code for
json_last_error() is set.

As it is hard to debug the error from just an error code an optional
$as_string parameter was added to json_last_error(), which returns an
error message instead of an error code.
2012-06-27 12:21:48 +02:00

3.0 KiB