Open
Description
I have some issues with script timeouts using this library.
PHP Version => 7.4.10
paquettg/php-html-parser => 3.1.0
I have basic script:
use PHPHtmlParser\Dom;
$dom = new Dom;
$dom->loadFromUrl('http://www.google.com');
$links = $dom->find("a");
echo "done";
After printing "done" it took around 20 seconds to finish script execution
I tried to run it from the console and from the web and the results are the same.
When I load a bigger page, it hangs up. Removing __destruct()
from AbstractNode
solves this issue, but I'm not sure if it is a good solution.