Skip to content

Commit 23961ef

Browse files
committed
Merge branch 'PHP-8.0'
* PHP-8.0: Rm unneeded function
2 parents 3a35c5e + e9b8b08 commit 23961ef

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

ext/standard/url.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -92,22 +92,6 @@ static const char *binary_strcspn(const char *s, const char *e, const char *char
9292
return e;
9393
}
9494

95-
static int is_userinfo_valid(const char *str, size_t len)
96-
{
97-
const char *valid = "-._~!$&'()*+,;=:";
98-
const char *p = str;
99-
while (p - str < len) {
100-
if (isalpha(*p) || isdigit(*p) || strchr(valid, *p)) {
101-
p++;
102-
} else if (*p == '%' && p - str <= len - 3 && isdigit(*(p+1)) && isxdigit(*(p+2))) {
103-
p += 3;
104-
} else {
105-
return 0;
106-
}
107-
}
108-
return 1;
109-
}
110-
11195
/* {{{ php_url_parse */
11296
PHPAPI php_url *php_url_parse_ex(char const *str, size_t length)
11397
{

0 commit comments

Comments
 (0)