Lines Matching refs:error_code

67 	json_globals->error_code = 0;  in PHP_GINIT_FUNCTION()
74 JSON_G(error_code) = 0; in PHP_RINIT_FUNCTION()
137 JSON_G(error_code) = encoder.error_code; in php_json_encode_ex()
149 static const char *php_json_get_error_msg(php_json_error_code error_code) /* {{{ */ in php_json_get_error_msg() argument
151 switch(error_code) { in php_json_get_error_msg()
189 php_json_error_code error_code = php_json_parser_error_code(&parser); in php_json_decode_ex() local
191 JSON_G(error_code) = error_code; in php_json_decode_ex()
193 zend_throw_exception(php_json_exception_ce, php_json_get_error_msg(error_code), error_code); in php_json_decode_ex()
212 php_json_error_code error_code = php_json_parser_error_code(&parser); in php_json_validate_ex() local
213 JSON_G(error_code) = error_code; in php_json_validate_ex()
242 JSON_G(error_code) = encoder.error_code; in PHP_FUNCTION()
243 if (encoder.error_code != PHP_JSON_ERROR_NONE && !(options & PHP_JSON_PARTIAL_OUTPUT_ON_ERROR)) { in PHP_FUNCTION()
248 if (encoder.error_code != PHP_JSON_ERROR_NONE) { in PHP_FUNCTION()
250 …w_exception(php_json_exception_ce, php_json_get_error_msg(encoder.error_code), encoder.error_code); in PHP_FUNCTION()
278 JSON_G(error_code) = PHP_JSON_ERROR_NONE; in PHP_FUNCTION()
283 JSON_G(error_code) = PHP_JSON_ERROR_SYNTAX; in PHP_FUNCTION()
335 JSON_G(error_code) = PHP_JSON_ERROR_SYNTAX; in PHP_FUNCTION()
339 JSON_G(error_code) = PHP_JSON_ERROR_NONE; in PHP_FUNCTION()
360 RETURN_LONG(JSON_G(error_code)); in PHP_FUNCTION()
369 RETURN_STRING(php_json_get_error_msg(JSON_G(error_code))); in PHP_FUNCTION()