From 269c8dac1d56ee85d71ae94d9b28dd7d8e8de7b7 Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Wed, 10 Jun 2020 23:10:18 +0200 Subject: Implement enums RFC: https://wiki.php.net/rfc/enumerations Co-authored-by: Nikita Popov Closes GH-6489. --- ext/json/json.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext/json/json.c') diff --git a/ext/json/json.c b/ext/json/json.c index 5315966f7d..d8e17ef9da 100644 --- a/ext/json/json.c +++ b/ext/json/json.c @@ -187,6 +187,8 @@ static const char *php_json_get_error_msg(php_json_error_code error_code) /* {{{ return "The decoded property name is invalid"; case PHP_JSON_ERROR_UTF16: return "Single unpaired UTF-16 surrogate in unicode escape"; + case PHP_JSON_ERROR_NON_BACKED_ENUM: + return "Non-backed enums have no default serialization"; default: return "Unknown error"; } -- cgit v1.2.1