mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
Fix Bug #53963, error code isn't always set in certain error cases.
This commit is contained in:
parent
efa9a8ee53
commit
18b7f018e3
@ -673,6 +673,7 @@ parse_JSON_ex(JSON_parser jp, zval *z, unsigned short utf16_json[], int length,
|
||||
/* fall through if not IS_STRING */
|
||||
default:
|
||||
FREE_BUFFERS();
|
||||
jp->error_code = PHP_JSON_ERROR_SYNTAX;
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
@ -712,6 +713,7 @@ parse_JSON_ex(JSON_parser jp, zval *z, unsigned short utf16_json[], int length,
|
||||
break;
|
||||
default:
|
||||
FREE_BUFFERS();
|
||||
jp->error_code = PHP_JSON_ERROR_SYNTAX;
|
||||
return false;
|
||||
}
|
||||
buf.len = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user