
David K. Lynn - 2015-05-30 11:00:31
Hi Dave,
This looks like a useful class but, when running example.php (including some of the alternative directives) it only returns:
Fatal error: Can't use function return value in write context in W:\Test\HTML_Parser\html.parser.class.php on line 274
Unfortunately, line 274 is:
if( !empty(trim($subNode->nodeValue)) ){
followed by assignments to $textCount and to the $GLOBALS['htmlTree'}... variables (case 3).
My quick review of your class code revealed numerous return statements for methods and the processDocument's return at line 118 (or 115 if there was an error).
Any suggestions or update?
Thanks!