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.
1 parent 9e76faf commit 7b71994Copy full SHA for 7b71994
ext/uri/php_lexbor.c
@@ -25,7 +25,7 @@
25
#endif
26
27
ZEND_TLS lxb_url_parser_t lexbor_parser;
28
-ZEND_TLS int lexbor_urls;
+ZEND_TLS unsigned short int lexbor_urls;
29
30
#define LEXBOR_MAX_URL_COUNT 500
31
#define LEXBOR_MRAW_BYTE_SIZE 8192
@@ -59,6 +59,7 @@ static void lexbor_cleanup_parser(void)
59
{
60
if (++lexbor_urls % LEXBOR_MAX_URL_COUNT == 0) {
61
lexbor_mraw_clean(lexbor_parser.mraw);
62
+ lexbor_urls = 0;
63
}
64
65
lxb_url_parser_clean(&lexbor_parser);
0 commit comments