Constantes pré-définies

Ces constantes sont définies par cette extension, et ne sont disponibles que si cette extension a été compilée avec PHP, ou bien chargée au moment de l'exécution.

SIMDJSON_ERR_CAPACITY (entier)
This parser can't support a document that big. Thrown when parsing a JSON string that is over 4GiB long.
SIMDJSON_ERR_TAPE_ERROR (entier)
The JSON document has an improper structure: missing or superfluous commas, braces, missing keys, etc.
SIMDJSON_ERR_DEPTH_ERROR (entier)
The JSON document was too deep (too many nested objects and arrays)
SIMDJSON_ERR_STRING_ERROR (entier)
Problem while parsing a string
SIMDJSON_ERR_T_ATOM_ERROR (entier)
Problem while parsing an atom starting with the letter 't'
SIMDJSON_ERR_F_ATOM_ERROR (entier)
Problem while parsing an atom starting with the letter 'f'
SIMDJSON_ERR_N_ATOM_ERROR (entier)
Problem while parsing an atom starting with the letter 'n'
SIMDJSON_ERR_NUMBER_ERROR (entier)
Problem while parsing a number
SIMDJSON_ERR_UTF8_ERROR (entier)
The input is not valid UTF-8
SIMDJSON_ERR_UNINITIALIZED (entier)
The parser used by simdjson is uninitialized. Should not happen.
SIMDJSON_ERR_EMPTY (entier)
Empty: no JSON found
SIMDJSON_ERR_UNESCAPED_CHARS (entier)
Within strings, some characters must be escaped, we found unescaped characters
SIMDJSON_ERR_UNCLOSED_STRING (entier)
A string is opened, but never closed.
SIMDJSON_ERR_UNSUPPORTED_ARCHITECTURE (entier)
simdjson does not have an implementation supported by this CPU architecture (perhaps it's a non-SIMD CPU?).
SIMDJSON_ERR_INCORRECT_TYPE (entier)
Should not happen.
SIMDJSON_ERR_NUMBER_OUT_OF_RANGE (entier)
The JSON number is too large or too small to fit within the requested type. Note that the C simdjson library is a fork and this error is ignored to match php's handling of JSON numbers that are too large or too small.
SIMDJSON_ERR_INDEX_OUT_OF_BOUNDS (entier)
Should not happen.
SIMDJSON_ERR_NO_SUCH_FIELD (entier)
Should not happen.
SIMDJSON_ERR_IO_ERROR (entier)
Should not happen.
SIMDJSON_ERR_INVALID_JSON_POINTER (entier)
Invalid JSON pointer syntax in simdjson_key_value() and other functions accepting a JSON pointer $key.
SIMDJSON_ERR_INVALID_URI_FRAGMENT (entier)
Invalid URI fragment syntax.
SIMDJSON_ERR_UNEXPECTED_ERROR (entier)
Unexpected error, consider reporting this problem as you may have found a bug in the simdjson PECL
SIMDJSON_ERR_PARSER_IN_USE (entier)
Should not happen.
SIMDJSON_ERR_OUT_OF_ORDER_ITERATION (entier)
Should not happen.
SIMDJSON_ERR_INSUFFICIENT_PADDING (entier)
Should not happen.
SIMDJSON_ERR_INCOMPLETE_ARRAY_OR_OBJECT (entier)
JSON document ended early in the middle of an object or array.
SIMDJSON_ERR_SCALAR_DOCUMENT_AS_VALUE (entier)
Should not happen.
SIMDJSON_ERR_OUT_OF_BOUNDS (entier)
Attempted to access location outside of document.
SIMDJSON_ERR_TRAILING_CONTENT (entier)
SIMDJSON_ERR_KEY_COUNT_NOT_COUNTABLE (entier)
SIMDJSON_ERR_INVALID_PROPERTY (entier)
Invalid property name for an stdClass when decoding a value with simdjson_decode() or simdjson_key_value()

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top