From edd882ede443a077cb62e57265a7aa06447caeee Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 23 Apr 2014 05:01:13 +0000 Subject: [PATCH] search_sphinx: abort if system client library exists --- plugins/search_sphinx/init.php | 4 ++++ 1 file changed, 4 insertions(+) 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"; } -- 2.39.5