cvs: php-src(PHP_4_3) /ext/standard url.c
| From: | Magnus M��tt� | Date: | Fri, 01 Oct 2004 18:28:44 +0000 |
| Subject: | cvs: php-src(PHP_4_3) /ext/standard url.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-28871@lists.php.net to get a copy of this message | ||
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 <jimw@php.net> |
+----------------------------------------------------------------------+
*/
-/* $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;