Vordefinierte Konstanten

Folgende Konstanten werden von dieser Erweiterung definiert und stehen nur zur Verfügung, wenn die Erweiterung entweder statisch in PHP kompiliert oder dynamisch zur Laufzeit geladen wurde.

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