Fix compile error with theoretically supported versions of libcurl < 7.12.3.

This commit is contained in:
Adam Harvey 2014-03-11 11:04:26 -07:00
parent cb5178a450
commit f8252aa537
2 changed files with 4 additions and 0 deletions

2
NEWS
View File

@ -11,6 +11,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)
- GD:
. Fixed bug #66714 ( imageconvolution breakage). (Brad Daily)

View File

@ -3142,6 +3142,7 @@ PHP_FUNCTION(curl_getinfo)
}
break;
}
#if LIBCURL_VERSION_NUM >= 0x070c03 /* Available since 7.12.3 */
case CURLINFO_SLIST:
{
struct curl_slist *slist;
@ -3157,6 +3158,7 @@ PHP_FUNCTION(curl_getinfo)
}
break;
}
#endif
default:
RETURN_FALSE;
}