com php-src: Fixed bug #70065 curl_getinfo() returns corrupted values: ext/curl/interface.c
| From: | Anatol Belski | Date: | Mon, 13 Jul 2015 19:47:42 +0000 |
| Subject: | com php-src: Fixed bug #70065 curl_getinfo() returns corrupted values: ext/curl/interface.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-87966@lists.php.net to get a copy of this message | ||
Commit: cefd010739e19b16d60544f6107c2c83e1430fb8
Author: Anatol Belski <ab@php.net> Mon, 13 Jul 2015 21:46:51 +0200
Parents: 21686f1b3070bfb8a535ec717d9b69a094fe651a
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=cefd010739e19b16d60544f6107c2c83e1430fb8
Log:
Fixed bug #70065 curl_getinfo() returns corrupted values
Bugs:
https://bugs.php.net/70065
Changed paths:
M ext/curl/interface.c
Diff:
diff --git a/ext/curl/interface.c b/ext/curl/interface.c
index 676c6ad..f45d9d1 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;