search_sphinx: abort if system client library exists

This commit is contained in:
Andrew Dolgov 2014-04-23 05:01:13 +00:00
parent af2c15f3d3
commit edd882ede4

View file

@ -11,6 +11,10 @@ class Search_Sphinx extends Plugin {
function init($host) { function init($host) {
$host->add_hook($host::HOOK_SEARCH, $this); $host->add_hook($host::HOOK_SEARCH, $this);
if (class_exists("SphinxClient")) {
user_error("Your PHP has a separate systemwide Sphinx client installed which conflicts with the client library used by tt-rss. Either remove the system library or disable Sphinx support.");
}
require_once __DIR__ . "/sphinxapi.php"; require_once __DIR__ . "/sphinxapi.php";
} }