Implement enums

RFC: https://wiki.php.net/rfc/enumerations

Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>

Closes GH-6489.
This commit is contained in:
Ilija Tovilo 2020-06-10 23:10:18 +02:00
parent a6fc427b8c
commit 269c8dac1d
No known key found for this signature in database
GPG key ID: A4F5D403F118200A
164 changed files with 4301 additions and 54 deletions

View file

@ -50,7 +50,8 @@ typedef enum {
PHP_JSON_ERROR_INF_OR_NAN,
PHP_JSON_ERROR_UNSUPPORTED_TYPE,
PHP_JSON_ERROR_INVALID_PROPERTY_NAME,
PHP_JSON_ERROR_UTF16
PHP_JSON_ERROR_UTF16,
PHP_JSON_ERROR_NON_BACKED_ENUM,
} php_json_error_code;
/* json_decode() options */