Check for safe_mode or open_basedir in the cURL adapter
Merge pull request #3534 from mbabker/safe_mode

[#29475] Check for safe_mode or open_basedir in the cURL adapter