From: Magnus M��tt� Date: Fri, 1 Oct 2004 18:28:44 +0000 (+0000) Subject: The length should be passed to the function, X-Git-Tag: php-4.3.10RC1~61 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=637a9710a1cb61b3f7c553e7646fac9fc7ec3134;p=php The length should be passed to the function, so no need to check it inside the function too. Will also fix a compile failure with gcc 3.4. --- diff --git a/ext/standard/url.c b/ext/standard/url.c index 714690775a..370c600c09 100644 --- a/ext/standard/url.c +++ b/ext/standard/url.c @@ -95,7 +95,6 @@ PHPAPI php_url *php_url_parse(char const *str) */ PHPAPI php_url *php_url_parse_ex(char const *str, int length) { - int length = strlen(str); char port_buf[6]; php_url *ret = ecalloc(1, sizeof(php_url)); char *s, *e, *p, *pp, *ue;