Skip to content

Commit 7b71994

Browse files
committed
Update type of lexbor_urls
1 parent 9e76faf commit 7b71994

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/uri/php_lexbor.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#endif
2626

2727
ZEND_TLS lxb_url_parser_t lexbor_parser;
28-
ZEND_TLS int lexbor_urls;
28+
ZEND_TLS unsigned short int lexbor_urls;
2929

3030
#define LEXBOR_MAX_URL_COUNT 500
3131
#define LEXBOR_MRAW_BYTE_SIZE 8192
@@ -59,6 +59,7 @@ static void lexbor_cleanup_parser(void)
5959
{
6060
if (++lexbor_urls % LEXBOR_MAX_URL_COUNT == 0) {
6161
lexbor_mraw_clean(lexbor_parser.mraw);
62+
lexbor_urls = 0;
6263
}
6364

6465
lxb_url_parser_clean(&lexbor_parser);

0 commit comments

Comments
 (0)