PHP Velho Oeste 2024

SphinxClient::getLastError

(PECL sphinx >= 0.1.0)

SphinxClient::getLastErrorGet the last error message

설명

public string SphinxClient::getLastError ( void )

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
9 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.
To Top