We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b19aea3 commit 9db46a3Copy full SHA for 9db46a3
ext/curl/interface.c
@@ -2904,11 +2904,11 @@ PHP_FUNCTION(curl_getinfo)
2904
2905
if (ZEND_NUM_ARGS() < 2) {
2906
char *s_code;
2907
-#ifdef PHP_WIN32
+ /* libcurl expects long datatype. So far no cases are known where
2908
+ it would be an issue. Using zend_long would truncate a 64-bit
2909
+ var on Win64, so the exact long datatype fits everywhere, as
2910
+ long as there's no 32-bit int overflow. */
2911
long l_code;
-#else
- zend_long l_code;
-#endif
2912
double d_code;
2913
#if LIBCURL_VERSION_NUM > 0x071301
2914
struct curl_certinfo *ci = NULL;
0 commit comments