我使用的是sphinx 0.9.8版本。我的php版本是5.3.1。在集成sphinx api后,我收到一些关于assert()的警告。我该如何解决这个问题? 任何人都可以帮助我吗?
由于
答案 0 :(得分:5)
嗯..如果作为参数需要一个整数,那么将代码编写为:
$sphinx->method((int) $param1);
编辑: 真实的例子:
$src = new SphinxClient();
$src->SetServer('127.0.0.1', 9393);
$src->SetLimits((int) $offset, (int) $per_page);
现在看?