Constants CURLOPT_CLOSEPOLICY, CURLCLOSEPOLICY_LEAST_RECENTLY_USED and others are not defined as they were removed in PHP 5.6.0.
Tests should probably be updated to only test the ones relevant for the CurlHttpRequest class to function properly. If those include constants removed in PHP 5.6, then we should fix the code to use a different method in PHP 5.6.
See also:
- http://php.net/manual/en/curl.constants.php#constant.curlopt-closepolicy
- https://gerrit.wikimedia.org/r/#/c/159159/
- https://bugzilla.wikimedia.org/show_bug.cgi?id=70570
Example of HttpRequest failing on PHP 5.6:
https://travis-ci.org/wikimedia/mediawiki-core/jobs/37159310 (lines 305...342)
Version: unspecified
Severity: major