Conversation
189d17e
to
6292137
Compare
Another option is to drop cURL support and only keep ping @javiereguiluz @stof |
👍 to remove the cURL requirement. In Symfony Installer we recently switched to use
In any case, I'd maintain cURL support because the support of |
6292137
to
e4147ba
Compare
$this->crawler->setEndPoint($endPoint); | ||
} | ||
|
||
public function doCheck($lock, $certFile) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should not be public
e4147ba
to
f5b58ae
Compare
Comments addressed |
f5b58ae
to
24ef857
Compare
throw new RuntimeException(sprintf('The web service failed for an unknown reason (HTTP %s).', $statusCode)); | ||
} | ||
|
||
curl_close($curl); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could call curl_close($ch)
just after getting the status code as none of the code paths after that are using $ch
anymore. It would avoid having 3 different places getting it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right
24ef857
to
37e2b9c
Compare
37e2b9c
to
d7e788a
Compare
👍 |
This PR was merged into the 2.0-dev branch. Discussion ---------- removed dependency on ext-curl Having a hard dependency on cURL is problematic. For instance, this library is a dep of SensioDistributionBundle, which is also a dep of Symfony Standard Edition. So, it means that we are forcing everyone using Symfony SE to have the PHP cURL extension installed, which is not what we want. So, this PR falls back to using file_get_contents when cURL is not installed. Commits ------- d7e788a removed dependency on ext-curl
Having a hard dependency on cURL is problematic. For instance, this library is a dep of SensioDistributionBundle, which is also a dep of Symfony Standard Edition. So, it means that we are forcing everyone using Symfony SE to have the PHP cURL extension installed, which is not what we want.
So, this PR falls back to using file_get_contents when cURL is not installed.