]> granicus.if.org Git - php/commitdiff
String lengths should never be char pointers.
authorSara Golemon <pollita@php.net>
Fri, 18 Jun 2004 00:44:37 +0000 (00:44 +0000)
committerSara Golemon <pollita@php.net>
Fri, 18 Jun 2004 00:44:37 +0000 (00:44 +0000)
ext/standard/url.c

index aac6964c1c71418ca1c5888f9c66d6e02a6c4215..9055583ec367f57d87c6b9016718be2306319511 100644 (file)
@@ -591,7 +591,8 @@ PHPAPI int php_raw_url_decode(char *str, int len)
    fetches all the headers sent by the server in response to a HTTP request */
 PHP_FUNCTION(get_headers)
 {
-       char *url, *url_len;
+       char *url;
+       int url_len;
        php_stream_context *context = NULL;
        php_stream *stream;
        zval **prev_val, **hdr = NULL;