From: Andrew Dolgov Date: Wed, 23 Apr 2014 05:01:13 +0000 (+0000) Subject: search_sphinx: abort if system client library exists X-Git-Tag: 1.13~39 X-Git-Url: https://git.wh0rd.org/?p=tt-rss.git;a=commitdiff_plain;h=edd882ede443a077cb62e57265a7aa06447caeee search_sphinx: abort if system client library exists --- diff --git a/plugins/search_sphinx/init.php b/plugins/search_sphinx/init.php index a6511034..557b2682 100644 --- a/plugins/search_sphinx/init.php +++ b/plugins/search_sphinx/init.php @@ -11,6 +11,10 @@ class Search_Sphinx extends Plugin { function init($host) { $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"; }