Fixing warning about CURL change in newer php versions.