curl_exec return false after upgrading PHP form 5.4 to 5.5 curl_exec return false after upgrading PHP form 5.4 to 5.5 curl curl

curl_exec return false after upgrading PHP form 5.4 to 5.5


I've been through a similar php upgrade recently, also on a vagrant box, and the code snippet above appears to work ok when I try it here.

Rather than an issue with curl after the upgrade, is it possible that the upgrade has had an impact on the data going in to curl? Either the way self::URL or $postData get built - do they still contain the data you're expecting to see?

If those vars are still populating as you'd expect, then you can get more info from curl itself on what went wrong during the curl_exec by using curl_getinfo, curl_errno and curl_error

$ch = curl_init();...$data = curl_exec( $ch );if (!$data) {    echo curl_getinfo( $ch ) . "\n";    echo curl_errno( $ch ) . "\n";    echo curl_error( $ch ) . "\n";}

These lines should give you a more detailed report of what's going wrong since the upgrade.