We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
has_text_range()
php_uri_parser_rfc3986_scheme_read()
1 parent 49faa4d commit 097963fCopy full SHA for 097963f
ext/uri/uri_parser_rfc3986.c
@@ -103,7 +103,7 @@ ZEND_ATTRIBUTE_NONNULL static zend_result php_uri_parser_rfc3986_scheme_read(con
103
{
104
const UriUriA *uriparser_uri = get_uri_for_reading(internal_uri->uri, read_mode);
105
106
- if (uriparser_uri->scheme.first != NULL && uriparser_uri->scheme.afterLast != NULL) {
+ if (has_text_range(&uriparser_uri->scheme)) {
107
ZVAL_STRINGL(retval, uriparser_uri->scheme.first, get_text_range_length(&uriparser_uri->scheme));
108
} else {
109
ZVAL_NULL(retval);
0 commit comments