Invalid internal use of preg_match_alll()
chaslain opened this issue · 2 comments
chaslain commented
PHP Warning 'yii\base\ErrorException' with message 'preg_match_all(): Compilation failed: invalid range in character class at offset 4'
in vendor/paquettg/php-html-parser/src/PHPHtmlParser/Selector.php:91
Code was this:
$file = file_get_contents($this->file_path);
$dom = new Dom;
$dom->loadStr($file, []);
$rows = $dom->find("tr");
php version: PHP 7.3.33 (cli) (built: Mar 18 2022 03:41:41) ( NTS )
Package version: 1.7.0
chaslain commented
Same error if using provided method of loading from file instead.