magnus          Fri Oct  1 14:28:44 2004 EDT

  Modified files:              (Branch: PHP_4_3)
    /php-src/ext/standard       url.c 
  Log:
  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.
  
http://cvs.php.net/diff.php/php-src/ext/standard/url.c?r1=1.58.2.16&r2=1.58.2.17&ty=u
Index: php-src/ext/standard/url.c
diff -u php-src/ext/standard/url.c:1.58.2.16 php-src/ext/standard/url.c:1.58.2.17
--- php-src/ext/standard/url.c:1.58.2.16        Tue Sep 21 20:51:51 2004
+++ php-src/ext/standard/url.c  Fri Oct  1 14:28:44 2004
@@ -15,7 +15,7 @@
    | Author: Jim Winstead <[EMAIL PROTECTED]>                                  |
    +----------------------------------------------------------------------+
  */
-/* $Id: url.c,v 1.58.2.16 2004/09/22 00:51:51 iliaa Exp $ */
+/* $Id: url.c,v 1.58.2.17 2004/10/01 18:28:44 magnus Exp $ */
 
 #include <stdlib.h>
 #include <string.h>
@@ -95,7 +95,6 @@
  */
 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;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to