mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
Fixed bug #70065 curl_getinfo() returns corrupted values
This commit is contained in:
parent
21686f1b30
commit
cefd010739
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user