我收到一个错误,说
已弃用:与类同名的方法在未来的PHP版本中将不会成为构造函数;Copyright © 2018 www.cnjs.com. All Rights Reserved.粤ICP备15044866号-1
TSStatus类位于第10行,在底部显示TSStatus
class TSStatus
{
private $_host;
private $_queryPort;
private $_serverDatas;
private $_channelDatas;
private $_userDatas;
private $_serverGroupFlags;
private $_channelGroupFlags;
private $_login;
private $_password;
private $_cacheFile;
private $_cacheTime;
private $_channelList;
private $_useCommand;
private $_javascriptName;
private $_socket;
public $imagePath;
public $showNicknameBox;
public $timeout;
public $hideEmptyChannels;
public $hideParentChannels;
public function TSStatus($host, $queryPort)
...
}
2条答案
按热度按时间eni9jsuy1#
正如错误中提到的,the official manual和注解:
替换
与
5t7ly7z52#
我得到了警告,关于这个问题,现在它开始工作。一开始是:
但我这样做了:
现在我已经停止收到警告,脚本运行良好。