Skip to content

Commit ad2946d

Browse files
committed
Implement followup for ext/uri
1 parent 26c96d3 commit ad2946d

File tree

87 files changed

+4834
-877
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+4834
-877
lines changed

ext/lexbor/lexbor/url/url.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -860,12 +860,6 @@ lxb_url_is_url_codepoint(lxb_codepoint_t cp)
860860
return lxb_url_codepoint_alphanumeric[(lxb_char_t) cp] != 0xFF;
861861
}
862862

863-
lxb_inline bool
864-
lxb_url_is_special(const lxb_url_t *url)
865-
{
866-
return url->scheme.type != LXB_URL_SCHEMEL_TYPE__UNKNOWN;
867-
}
868-
869863
lxb_inline const lxb_url_scheme_data_t *
870864
lxb_url_scheme_by_type(lxb_url_scheme_type_t type)
871865
{

ext/lexbor/lexbor/url/url.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,12 @@ lxb_url_scheme(const lxb_url_t *url)
773773
return &url->scheme.name;
774774
}
775775

776+
lxb_inline bool
777+
lxb_url_is_special(const lxb_url_t *url)
778+
{
779+
return url->scheme.type != LXB_URL_SCHEMEL_TYPE__UNKNOWN;
780+
}
781+
776782
lxb_inline const lexbor_str_t *
777783
lxb_url_username(const lxb_url_t *url)
778784
{

ext/uri/config.m4

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ PHP_ARG_WITH([external-uriparser],
1111
PHP_INSTALL_HEADERS([ext/uri], m4_normalize([
1212
php_uri.h
1313
php_uri_common.h
14+
php_uri_parser.h
15+
php_uri_query.h
1416
uri_parser_rfc3986.h
1517
uri_parser_whatwg.h
1618
uri_parser_php_parse_url.h
@@ -38,7 +40,7 @@ else
3840
PHP_EVAL_INCLINE([$LIBURIPARSER_CFLAGS])
3941
fi
4042

41-
PHP_NEW_EXTENSION(uri, [php_uri.c php_uri_common.c uri_parser_rfc3986.c uri_parser_whatwg.c uri_parser_php_parse_url.c $URIPARSER_SOURCES], [no],,[$URI_CFLAGS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1])
43+
PHP_NEW_EXTENSION(uri, [php_uri.c php_uri_common.c php_uri_parser.c php_uri_query.c uri_parser_rfc3986.c uri_parser_whatwg.c uri_parser_php_parse_url.c $URIPARSER_SOURCES], [no],,[$URI_CFLAGS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1])
4244
PHP_ADD_EXTENSION_DEP(uri, lexbor)
4345

4446
if test "$PHP_EXTERNAL_URIPARSER" = "no"; then

0 commit comments

Comments
 (0)