From: Anatol Belski Date: Mon, 13 Jul 2015 19:46:51 +0000 (+0200) Subject: Fixed bug #70065 curl_getinfo() returns corrupted values X-Git-Tag: php-7.1.1RC1~35^2~8^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cefd010739e19b16d60544f6107c2c83e1430fb8;p=php Fixed bug #70065 curl_getinfo() returns corrupted values --- diff --git a/ext/curl/interface.c b/ext/curl/interface.c index 676c6adb81..f45d9d1d64 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -2904,7 +2904,14 @@ PHP_FUNCTION(curl_getinfo) if (ZEND_NUM_ARGS() < 2) { char *s_code; +#ifdef PHP_WIN32 + /* libcurl currently relies on 32-bit long directly. + We should use zend_long here once libcurl has full + 64-bit support on Windows. */ + long l_code; +#else zend_long l_code; +#endif double d_code; #if LIBCURL_VERSION_NUM > 0x071301 struct curl_certinfo *ci = NULL;