diff options
author | Nikita Popov <nikic@php.net> | 2012-06-27 12:19:41 +0200 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2012-06-27 12:21:48 +0200 |
commit | 4662151ea7d7b6920d115cf2a2d6e9d4232727a3 (patch) | |
tree | 031940163a270240a885dfe1dc6442d81997fe94 /ext/reflection/php_reflection.c | |
parent | bc0972e78daec4d7b7adccb7116f8ded2ca5044d (diff) | |
download | php-git-4662151ea7d7b6920d115cf2a2d6e9d4232727a3.tar.gz |
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.
Diffstat (limited to 'ext/reflection/php_reflection.c')
0 files changed, 0 insertions, 0 deletions