Skip to content

Conversation

TimWolla
Copy link
Member

See individual commit messages for justification.

The value of `uriparser_uri` is dereferenced *immediately* after the assertion,
making it redundant for both the human reader and the compiler. In case of the
normalized_uri, the pointer is trivially non-NULL, since it is referring to a
struct member at not-the-first position.

Generally speaking, unless something is checked for `NULL` one can assume it to
never be `NULL`.
@TimWolla TimWolla merged commit 1193823 into php:master Aug 26, 2025
9 checks passed
@TimWolla TimWolla deleted the uri-rfc3986-clean branch August 26, 2025 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants