php-simple-html-dom-parser
php-simple-html-dom-parser copied to clipboard
php 7.1 fix
//function file_get_html($url, $use_include_path = false, $context=null, $offset = -1, $maxLen=-1, $lowercase = true, $forceTagsClosed=true, $target_charset = DEFAULT_TARGET_CHARSET, $stripRN=true, $defaultBRText=DEFAULT_BR_TEXT, $defaultSpanText=DEFAULT_SPAN_TEXT)
function file_get_html($url, $use_include_path = false, $context=null, $offset = 0, $maxLen=-1, $lowercase = true, $forceTagsClosed=true, $target_charset = DEFAULT_TARGET_CHARSET, $stripRN=true, $defaultBRText=DEFAULT_BR_TEXT, $defaultSpanText=DEFAULT_SPAN_TEXT)
``
$offset = 0 fix problem with php 7.1
Thanks for the fix. It seems to be happening with php 7.2 as well if anyone is wondering. PHP 7.0 is fine.
It was also discussed in an older thread https://github.com/sunra/php-simple-html-dom-parser/issues/47