【发布时间】:2013-07-31 12:59:45
【问题描述】:
请问我该如何纠正这个错误:
Warning: Illegal string offset 'handler' in /home/***************/public_html/whois/phpwhois/whois.gtld.php on line 95
关于以下代码:
function parse($data, $query)
{
$this->Query = array();
$this->SUBVERSION = sprintf("%s-%s", $query["handler"], $this->HANDLER_VERSION);
$this->result = generic_parser_b($data["rawdata"], $this->REG_FIELDS, 'dmy');
【问题讨论】:
-
好的。请认为这已解决。我在此页面上找到了解决方案:stackoverflow.com/questions/15654076/… 但是,如果您有什么要添加的,我将不胜感激。谢谢!
-
这是一篇旧帖子。我确实在寻找解决方案,所以分享了我的解决方案,该解决方案已经由 github https://github.com/phpWhois/phpWhois/commit/8d3c57316e7d971de7ccc4a0acf775f12e504b60 中的 phpwhois 制作