我最近将我的环境升级到 PHP 5.6,现在我的代码在运行时生成警告:
Warning: CPage::findOnPageLinks(): Not yet implemented in / .. /crawler/page.class.php on line 162
单步执行代码并成功进入函数,然后在我尝试单步执行看似不相关的数组时抛出该错误。
我很困惑这是从哪里来的,这意味着什么。
当我尝试逐步浏览 XML 节点列表时,它被抛出:
$xpath = new DOMXPath( $this->xml );
set_error_handler( array( $this, 'XMLerrorHandler' ) );
$nodeList = $xpath->query( $xPathQuery );
restore_error_handler();
foreach( $nodeList as $node ) # <<<<---
PHP $xpath->query 表达式不起作用
似乎是PHP中的错误。
https://bugs.php.net/bug.php?id=61858&edit=1