Skip to content

4.0.0: Fix bugs noticed while writing documentation#88

Merged
crazyxman merged 1 commit intomasterfrom
fix-bugs
Oct 19, 2022
Merged

4.0.0: Fix bugs noticed while writing documentation#88
crazyxman merged 1 commit intomasterfrom
fix-bugs

Conversation

@TysonAndre
Copy link
Copy Markdown
Collaborator

@TysonAndre TysonAndre commented Oct 19, 2022

  • Make the SIMDJSON_ERR_* constants case-sensitive in all PHP versions.
    (The code it was based on was missing the flag needed to mark constants
    as case sensitive before PHP 8)

  • Fix a bug that prevented using JSON pointer in simdjson_key_count,
    simdjson_key_exists, and simdjson_key_value with a leading slash
    https://www.rfc-editor.org/rfc/rfc6901.html. (The workaround would convert /foo to //foo, which would look up $value['']['foo'])

    Fix a bug that was introduced when working around test failures
    following a change in json pointer validation in the underlying C simdjson library.

  • "" in a JSON pointer $key continues to refer to the entire document.

  • "/" in a JSON pointer $key now properly refers to the key that is the empty string.

  • Continue to allow the non-standard omission of the leading "/" for
    compatibility with earlier PECL releases.
    This may be deprecated in a subsequent release.

* Make the `SIMDJSON_ERR_*` constants case-sensitive in all PHP versions.
  (The code it was based on was missing the flag needed to mark constants
  as case sensitive before PHP 8)
* Fix a bug that prevented using JSON pointer in `simdjson_key_count`,
  `simdjson_key_exists`, and `simdjson_key_value` with a leading slash
  https://www.rfc-editor.org/rfc/rfc6901.html.

  Fix a bug that was introduced when working around test failures
  following a change in json pointer validation in the underlying C simdjson library.
* "" in a JSON pointer $key continues to refer to the entire document.
* "/" in a JSON pointer $key now properly refer to the key that is the empty string.
* Continue to allow the non-standard omission of the leading "/" for
  compatibility with earlier PECL releases.
  This may be deprecated in a subsequent release.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants