summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--ext/curl/interface.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 7b664cf292..727b97c096 100644
--- a/NEWS
+++ b/NEWS
@@ -13,6 +13,8 @@ PHP NEWS
- cURL:
. Fixed bug #66109 (Can't reset CURLOPT_CUSTOMREQUEST to default behaviour)
(Tjerk)
+ . Fix compilation on libcurl versions between 7.10.5 and 7.12.2, inclusive.
+ (Adam)
- Date:
. Added DateTimeImmutable::createFromMutable to create a DateTimeImmutable
diff --git a/ext/curl/interface.c b/ext/curl/interface.c
index 4c200bda38..1995f23a08 100644
--- a/ext/curl/interface.c
+++ b/ext/curl/interface.c
@@ -3138,6 +3138,7 @@ PHP_FUNCTION(curl_getinfo)
}
break;
}
+#if LIBCURL_VERSION_NUM >= 0x070c03 /* Available since 7.12.3 */
case CURLINFO_SLIST:
{
struct curl_slist *slist;
@@ -3153,6 +3154,7 @@ PHP_FUNCTION(curl_getinfo)
}
break;
}
+#endif
default:
RETURN_FALSE;
}