mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
* uri: Unify string creation in `php_uri_parser_rfc3986_scheme_read()` * uri: Remove useless non-NULL assertions in uri_parser_rfc3986.c 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`. * uri: Add `has_text_range()` helper to uri_parser_rfc3986.c