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