用户
 找回密码
 入住 CI 中国社区
搜索
查看: 2035|回复: 1
收起左侧

[HELP] codeigniter使用Gearman服务遇到的问题

[复制链接]
发表于 2014-12-4 16:34:14 | 显示全部楼层 |阅读模式
首先ci版本2.2.0   php版本:5.6.2
代码:   
        $client= new GearmanClient();
        $client->addServer('127.0.0.1', 4730);
      echo $client->do('myfun', 'param123');                       282行

结果:
A PHP Error was encounteredSeverity: 8192
Message:  GearmanClient::do(): Use GearmanClient::doNormal()
Filename: controllers/xxx.php
Line Number: 282

问题:
经过测试在不使用框架的时候测试结果正确,在使用ci框架的时候就报错,现在可以肯定的是gearman这个服务中do这个函数在ci中不能用,(猜测也许是关键词的问题),现在请教大神怎么解决这个问题,有没有什么思路。   


3Q

 楼主| 发表于 2014-12-4 17:24:46 | 显示全部楼层
The GearmanClient::do() method is deprecated as of pecl/gearman 1.0.0. Use GearmanClient::doNormal().

本版积分规则