0

请问我该如何纠正这个错误:

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');
4

1 回答 1

0

请检查 $query 是否为字符串,如果是,则代码将不起作用。确保将 $enquiry 作为数组传递或触发异常。

于 2013-07-31T13:02:31.663 回答