drupal_web_test_case.php calls curl_init() without checking to see if it exists. I'd try my hand at a patch but I don't know what the desired behavior is if curl isn't enabled.

CommentFileSizeAuthor
#3 251550_require_curl_1.patch1.57 KBksenzee

Comments

webchick’s picture

can we use drupal_http_request() for this in place of curl? Or does it have to be curl?

dmitrig01’s picture

It has to be cURL - drupal_http_request can not do POST requests very well, I don't think. It also lacks several of the options that cURL has.

Can we use hook_requirements for this?

ksenzee’s picture

Status: Active » Needs review
StatusFileSize
new1.57 KB

Here's a patch that uses hook_requirements to abort installation if curl isn't available. We'll probably want to add something to the handbook about how to install curl.

chx’s picture

well, if we begint his then we need to check for simplexml too. you can disable that as well.

dries’s picture

Status: Needs review » Reviewed & tested by the community

I've fixed a typo in the code comments (cURL instead of IMAP) and committed this to CVS HEAD.

We can add a simplexml requirement check in a separate patch.

Thanks ksenzee!

dries’s picture

Status: Reviewed & tested by the community » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.