diff options
-rw-r--r-- | ext/standard/url.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/url.c b/ext/standard/url.c index 7dd406dd2b..f053636584 100644 --- a/ext/standard/url.c +++ b/ext/standard/url.c @@ -59,7 +59,7 @@ void free_url(php_url * theurl) php_url *url_parse(char *str) { regex_t re; - regmatch_t subs[10]; + regmatch_t subs[11]; int err; int length = strlen(str); char *result; @@ -117,7 +117,7 @@ php_url *url_parse(char *str) regfree(&re); /* free the old regex */ if ((cerr=regcomp(&re, "^(([^@:]+)(:([^@:]+))?@)?((\\[([^]]+)\\])|([^:@]+))(:([^:@]+))?", REG_EXTENDED)) - || (err=regexec(&re, result, 10, subs, 0))) { + || (err=regexec(&re, result, 11, subs, 0))) { STR_FREE(ret->scheme); STR_FREE(ret->path); STR_FREE(ret->query); |