--  
reeze | reeze.cn


在 2012年6月27日星期三,下午6:21,Nikita Popov 写道:

> Commit: 4662151ea7d7b6920d115cf2a2d6e9d4232727a3
> Author: Nikita Popov <ni...@php.net (mailto:ni...@php.net)> Wed, 27 Jun 2012 
> 12:19:41 +0200
> Parents: bc0972e78daec4d7b7adccb7116f8ded2ca5044d
> Branches: PHP-5.3 PHP-5.4 master
>  
> Link: 
> 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
>  


Reply via email to