Skip to content

Commit 21f8612

Browse files
committed
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Rm unneeded function
2 parents fbf8c75 + 9c67308 commit 21f8612

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
@@ -98,22 +98,6 @@ static const char *binary_strcspn(const char *s, const char *e, const char *char
9898
return e;
9999
}
100100

101-
static int is_userinfo_valid(const char *str, size_t len)
102-
{
103-
const char *valid = "-._~!$&'()*+,;=:";
104-
const char *p = str;
105-
while (p - str < len) {
106-
if (isalpha(*p) || isdigit(*p) || strchr(valid, *p)) {
107-
p++;
108-
} else if (*p == '%' && p - str <= len - 3 && isdigit(*(p+1)) && isxdigit(*(p+2))) {
109-
p += 3;
110-
} else {
111-
return 0;
112-
}
113-
}
114-
return 1;
115-
}
116-
117101
/* {{{ php_url_parse
118102
*/
119103
PHPAPI php_url *php_url_parse_ex(char const *str, size_t length)

0 commit comments

Comments
 (0)