我将php版本从5.4升级到5.5.升级php curl_exec函数后启动返回false. php 5.5中的curl选项有什么变化吗?我在文档中找不到任何内容.
$ch = curl_init();
curl_setopt( $ch, CURLOPT_POST, 1 );
curl_setopt( $ch, CURLOPT_HEADER, 0 );
curl_setopt( $ch, CURLOPT_URL, self::URL );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $postData );
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, 0 );
curl_setopt( $ch, CURLOPT_SSL_VERIFYHOST, 0 );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt( $ch, CURLOPT_TIMEOUT, 90 );
$data = curl_exec( $ch );
PHP版本:5.5.14-2
注意:我在Vagrant Box上收到此错误