]> git.wh0rd.org - tt-rss.git/commitdiff
search_sphinx: abort if system client library exists
authorAndrew Dolgov <noreply@fakecake.org>
Wed, 23 Apr 2014 05:01:13 +0000 (05:01 +0000)
committerAndrew Dolgov <noreply@fakecake.org>
Wed, 23 Apr 2014 05:01:13 +0000 (05:01 +0000)
plugins/search_sphinx/init.php

index a6511034d6a94432fd94510e3303ef5afcf83b4d..557b2682cad0bb56dfc87218a7ada6183bbaa23e 100644 (file)
@@ -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";
        }