抓取显示 php 7.0 以上的无限循环?

Scraping show infinte loop above php 7.0?

 $url = 'https://site';
copy('https://site',  \Yii::getAlias('@webroot').'/scrapping.html');
$response=\common\models\helpers\Scrapping\SimpleHtmlDom::fileGetHtml(\Yii::getAlias('@webroot').'/scrapping.html');
var_dump($response);
exit();

我正在使用keltstr\simplehtmldom\ extension.

我正在做的是获取数据并将其存储在我的服务器上并从我自己的本地 file.It 在上面执行无限循环 php 7.0 但在 php 7 中工作正常。0.Why 这发生在 php 版本中。? 当我在这个函数中直接使用 url 时出现同样的错误

// $response =   \keltstr\simplehtmldom\SimpleHTMLDom::fileGetHtml($url);

这里是递归错误输出

这里库基本没有问题

无限循环的问题就在var_dump();

Here is the code
$response = file_get_html(url);
var_dump($response);
Here you will see the infinte loop in some server

所以请在没有 var_dump() 的情况下进行其余测试; 代码中已有响应

还有一件事你必须关心下面php 7你需要添加0作为偏移量

 foreach ($response->find('article',0) as $article) {

以上 php 7 代码将是

foreach ($response->find('article') as $article) {