断言()在php 5.3.1中显示警告

DEV*_*OPS 2 php warnings assert sphinx

我使用的是sphinx 0.9.8版本.我的php版本是5.3.1.在集成sphinx api后,我收到一些关于assert()的警告.我该如何解决这个问题?任何人都可以帮助我?

谢谢

Sor*_*tas 5

好吧..如果作为参数需要一个整数,那么将代码编写为:

$sphinx->method((int) $param1);
Run Code Online (Sandbox Code Playgroud)

编辑:真实的例子:

$src = new SphinxClient();
$src->SetServer('127.0.0.1', 9393);
$src->SetLimits((int) $offset, (int) $per_page);
Run Code Online (Sandbox Code Playgroud)

现在看?