Deprecated: Optional parameter $keys declared before required parameter $cms_id is implicitly treated as a required parameter in /home/www/dev/work/class/blog/CmsKey.php on line 75

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$title is deprecated in /home/www/dev/work/website/lvesu/class/controller/blog/php.php on line 28

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$outlink is deprecated in /home/www/dev/work/website/lvesu/template/blog/cms/php.manual.tpl on line 2

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$status is deprecated in /home/www/dev/work/website/lvesu/template/blog/index.head.php on line 2
PHP - Manual: SphinxClient::getLastError - 互联网笔记

略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: SphinxClient::getLastError

2025-10-04

SphinxClient::getLastError

(PECL sphinx >= 0.1.0)

SphinxClient::getLastErrorGet the last error message

说明

public SphinxClient::getLastError ( void ) : string

Returns string with the last error message. If there were no errors during the previous API call, empty string is returned. This method doesn't reset the error message, so you can safely call it several times.

参数

此函数没有参数。

返回值

Returns the last error message or an empty string if there were no errors.

add a note add a note

User Contributed Notes 1 note

up
0
miro dot wikgren at w3 dot fi
4 years ago
Note that getLastError() doesn't work if you run multiple queries with runQueries(). It doesn't return any error, even if one or several (or all) of the queries failed.

官方地址:https://www.php.net/manual/en/sphinxclient.getlasterror.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3