Page MenuHomePhabricator

Check for CURLFile is broken in HTTPSFuture
Closed, ResolvedPublic

Description

Specifically, I'm talking about:
https://secure.phabricator.com/diffusion/PHU/browse/master/src/future/http/HTTPSFuture.php;984269c6a3a377508fa4bf408ba725530e819b80$548

That line currently states:
if (class_exists('CURLFile')) {

By default, class_exists will autoload the class. This fails on PHP version < 5.5, so it defeats the purpose of the check. The check should really be:
if (class_exists('CURLFile', false)) {

Could someone do this quick fix?