Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/273.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
与php一起使用时,Curl经常崩溃_Php_Curl - Fatal编程技术网

与php一起使用时,Curl经常崩溃

与php一起使用时,Curl经常崩溃,php,curl,Php,Curl,我在PHP5.6.16中使用curl7.42.1, 它经常崩溃,并且在调试过程中给出http_代码=>0。 我已经尝试增加超时,但它仍然给出http_代码0。 我重建了curl,它自动得到修复,几天后又崩溃了。 我尝试了最新版本的curl 7.46.0,但7.42.1似乎更稳定。 在CentOS 6.7版上使用curl 频繁撞车的原因可能是什么 下面是我正在使用的curl选项 $this->curlArray=array( CURLOPT_URL=>'http://s

我在PHP5.6.16中使用curl7.42.1, 它经常崩溃,并且在调试过程中给出http_代码=>0。 我已经尝试增加超时,但它仍然给出http_代码0。 我重建了curl,它自动得到修复,几天后又崩溃了。 我尝试了最新版本的curl 7.46.0,但7.42.1似乎更稳定。 在CentOS 6.7版上使用curl

频繁撞车的原因可能是什么

下面是我正在使用的curl选项

$this->curlArray=array(
        CURLOPT_URL=>'http://stackoverflow.com/',
        CURLOPT_HEADER=>false,
        CURLOPT_FAILONERROR=>false,
        CURLOPT_RETURNTRANSFER=>true,
        CURLOPT_FORBID_REUSE=>true,            
        CURLOPT_FRESH_CONNECT=>true,
        CURLOPT_CONNECTTIMEOUT=> 3,
        CURLOPT_TIMEOUT=>  3            
    );

你能发布你的问题卷曲命令吗?可能选项有问题,所以我们可以帮助你?@Armen我更新了问题尝试从这里检查第一个答案-@Armen是的,我在发布之前检查了所有问题,我认为代码没有问题,因为当我重建卷曲时,它可以完美地工作,过了一段时间,它开始返回http_代码0