diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | ext/curl/interface.c | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -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; } |