]> granicus.if.org Git - php/commitdiff
Revert, this is max error size, not strlen(error)
authorSterling Hughes <sterling@php.net>
Mon, 10 Sep 2001 00:25:59 +0000 (00:25 +0000)
committerSterling Hughes <sterling@php.net>
Mon, 10 Sep 2001 00:25:59 +0000 (00:25 +0000)
ext/curl/curl.c

index 60ae36f1f78bae60eedfea1eec3ad79b4206ee7d..c6b9585247a5952fa25c90748e524933fd804aee 100644 (file)
@@ -961,7 +961,7 @@ PHP_FUNCTION(curl_error)
        ZEND_FETCH_RESOURCE(ch, php_curl *, zid, -1, le_curl_name, le_curl);
 
        ch->err.str[CURL_ERROR_SIZE] = 0;
-       RETURN_STRINGL(ch->err.str, CURL_ERROR_SIZE, 1);
+       RETURN_STRINGL(ch->err.str, 1);
 }
 /* }}} */