回复: [PHP-CVS] com php-src: Improve JSON error handling: NEWS ext/json/json.c ext/json/tests/003.phpt ext/json/tests/004.phpt
ext/json/tests/bug54058.phpt ext/json/tests/bug61537.phpt ext/json/tests/inf_nan_error.phpt ext/json/tests/json_encode_basic.phpt
ext/json/tests/unsupported_type_error.phpt
| From: | Reeze | Date: | Wed, 27 Jun 2012 10:45:48 +0000 |
| Subject: | 回复: [PHP-CVS] com php-src: Improve JSON error handling: NEWS ext/json/json.c ext/json/tests/003.phpt ext/json/tests/004.phpt ext/json/tests/bug54058.phpt ext/json/tests/bug61537.phpt ext/json/tests/inf_nan_error.phpt ext/json/tests/json_encode_basic.phpt ext/json/tests/unsupported_type_error.phpt |
||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-69476@lists.php.net to get a copy of this message | ||
--
reeze | reeze.cn
在 2012年6月27日星期三,下午6:21,Nikita Popov 写道:
> Commit: 4662151ea7d7b6920d115cf2a2d6e9d4232727a3
> Author: Nikita Popov <nikic@php.net (mailto:nikic@php.net)> Wed, 27 Jun 2012 12:19:41
> +0200
> Parents: bc0972e78daec4d7b7adccb7116f8ded2ca5044d
> Branches: PHP-5.3 PHP-5.4 master
>
> Link: g
> [5t>ôÒéhV&•!http://git.php.net/?p=php-src.git;a=commitdiff;h=4662151ea7d7b6920d115cf2a2d6e9d4232727a3
>
> Log:
> 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.
>
> Changed paths:
> M NEWS
> M ext/json/json.c
>
>
How about update json_last_error 's proto comment? :)
> M ext/json/tests/003.phpt
> M ext/json/tests/004.phpt
> M ext/json/tests/bug54058.phpt
> M ext/json/tests/bug61537.phpt
> M ext/json/tests/inf_nan_error.phpt
> M ext/json/tests/json_encode_basic.phpt
> M ext/json/tests/unsupported_type_error.phpt
>
> --
> PHP CVS Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
> 附件:
> - diff_4662151ea7d7b6920d115cf2a2d6e9d4232727a3.txt
>