ITeye博客

QueryPath的问题

bardo · 2010-04-25 23:02 · PHP · 编程语言 · Markdown

QueryPath的问题:

I found some problems in QueryPath code:

In the line 463 to 470 of the file QueryPath.php :
    If no match is found, we set an empty.
but the setting is not the outer of foreach! 

In the line 484:
    $vals = explode(' ', $nl->item($i)->getAttribute('class')); 
    $nl->item($i) is a DOMNode and there is no method getAttribute in class DOMNode. (maybe $nl->item($i) is a DOMElement!)

In line 2973:
    if ($lastDot !== FALSE && (strtolower(substr($filename, $lastDot)) == '.html'
    but many file's extension are ".htm" and not ".html". What i can do?

In line 2788
    $test = substr($string, 0, 255);
    The variant $test is never used again from here.

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。