Improved curl proper installation/initialization check
Without this check, if you have curl not installed/misconfigured, the RuntimeException is never thrown because everything is stopped by the following error:
Fatal error: Call to undefined function Buzz\Client\curl_init() in .../vendor/kriswallsmith/buzz/lib/Buzz/Client/AbstractCurl.php on line 26
+1 merge please.
I would rather not pollute runtime with dependency checks…
@kriswallsmith, I may agree with you but IMHO if you want to do so you should remove the whole check (instead having a partially functional check)
According to the PHP manual curl_init() will return "FALSE on errors." This is not a check to see if the extension is installed.
Ok, now I truly got your point of view. So you can consider the issue closed and reject the pull request.
No need to say thanks @kriswallsmith !
Me and the whole PHP community should say thanks to you for giving us Assetic, Buzz and Spork 👍
Keep coding with such brilliance, man!