php-simple-html-dom-parser icon indicating copy to clipboard operation
php-simple-html-dom-parser copied to clipboard

php 7.1 fix

Open fox4o opened this issue 8 years ago • 1 comments

//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

fox4o avatar Apr 19 '18 18:04 fox4o

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

mhosks avatar Apr 21 '18 05:04 mhosks