mirror of
https://github.com/php/php-src.git
synced 2025-01-07 19:44:02 +08:00
Fix the other part...
This commit is contained in:
parent
f25ccb0a83
commit
ea9ac669da
@ -661,13 +661,13 @@ PHP_FUNCTION(curl_getinfo)
|
||||
ZEND_FETCH_RESOURCE(curl_handle, php_curl *, curl_id, -1, "CURL Handle", le_curl);
|
||||
|
||||
if (argc < 2) {
|
||||
char url[250];
|
||||
char *url;
|
||||
long l_code;
|
||||
double d_code;
|
||||
|
||||
array_init(return_value);
|
||||
|
||||
curl_easy_getinfo(curl_handle->cp, CURLINFO_EFFECTIVE_URL, url);
|
||||
curl_easy_getinfo(curl_handle->cp, CURLINFO_EFFECTIVE_URL, &url);
|
||||
add_assoc_string(return_value, "url", url, 1);
|
||||
|
||||
curl_easy_getinfo(curl_handle->cp, CURLINFO_HTTP_CODE, &l_code);
|
||||
|
Loading…
Reference in New Issue
Block a user