Composer: ErrorException Use of undefined constant CURLOPT_HTTPGET

Created on 24 May 2017  ·  3Comments  ·  Source: composer/composer

Just a minor issue: When starting composer w/o curl extension installed composer greets with just an ErrorException with message "Use of undefined constant CURLOPT_HTTPGET - assumed 'CURLOPT_HTTPGET'".

It would be more comfortable for a user to see a message that a (the) required php extension is not available.

Most helpful comment

All 3 comments

Composer does not use curl at all. Look at the stack trace of the exception. I suspect it comes from a plugin

Oh, good hint, have not run -vvv. Will report it to hirak/prestissimo.

Was this page helpful?
0 / 5 - 0 ratings