Skip to content

Commit 9db46a3

Browse files
committed
remove #ifdef
1 parent b19aea3 commit 9db46a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/curl/interface.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2904,11 +2904,11 @@ PHP_FUNCTION(curl_getinfo)
29042904

29052905
if (ZEND_NUM_ARGS() < 2) {
29062906
char *s_code;
2907-
#ifdef PHP_WIN32
2907+
/* 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. */
29082911
long l_code;
2909-
#else
2910-
zend_long l_code;
2911-
#endif
29122912
double d_code;
29132913
#if LIBCURL_VERSION_NUM > 0x071301
29142914
struct curl_certinfo *ci = NULL;

0 commit comments

Comments
 (0)