chenweiqiang 发表于 2014-12-4 16:34:14

codeigniter使用Gearman服务遇到的问题

首先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

chenweiqiang 发表于 2014-12-4 17:24:46

The GearmanClient::do() method is deprecated as of pecl/gearman 1.0.0. Use GearmanClient::doNormal().
页: [1]
查看完整版本: codeigniter使用Gearman服务遇到的问题