PHP warning: Call to legacy function curl_http_request. Please use chr_curl_http_request instead.

The warning come from 'curl_http_request function'. This function is called by 'chr_curl_http_request' (for redirection), instand of use 'chr_curl_http_request'.

CommentFileSizeAuthor
#2 chr-deprecated_call-2512054-2.patch473 byteskupide

Comments

kupide’s picture

Title: PHP warning when 'Redirect to the new location' » Call to legacy function curl_http_request. Please use chr_curl_http_request instead.
Issue summary: View changes
kupide’s picture

Status: Active » Needs review
StatusFileSize
new473 bytes

Patch

alexboss’s picture

Thanks for this patch, it works great and avoid to have useless log entries in watchdog.

It would be great to push it to the main module.

Best regards,

Alexandre

pfrenssen’s picture

Status: Needs review » Reviewed & tested by the community

Patch looks good, thanks! I also checked the rest of the code base, and this is the only remaining instance where the deprecated function is called.

  • minorOffense committed d1548c0 on 7.x-1.x authored by kupide
    Issue #2512054 by kupide: Call to legacy function curl_http_request....
minoroffense’s picture

Status: Reviewed & tested by the community » Patch (to be ported)

Committed