Skip to content

Add Uri\WhatWg classes to ext/uri #18672

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Jun 10, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update type of lexbor_urls
  • Loading branch information
kocsismate committed Jun 10, 2025
commit 928653a03a76cdcc4b4a34fea9c33b29dccd72d8
3 changes: 2 additions & 1 deletion ext/uri/php_lexbor.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#endif

ZEND_TLS lxb_url_parser_t lexbor_parser;
ZEND_TLS int lexbor_urls;
ZEND_TLS unsigned short int lexbor_urls;

#define LEXBOR_MAX_URL_COUNT 500
#define LEXBOR_MRAW_BYTE_SIZE 8192
Expand Down Expand Up @@ -59,6 +59,7 @@ static void lexbor_cleanup_parser(void)
{
if (++lexbor_urls % LEXBOR_MAX_URL_COUNT == 0) {
lexbor_mraw_clean(lexbor_parser.mraw);
lexbor_urls = 0;
}

lxb_url_parser_clean(&lexbor_parser);
Expand Down