Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; SphinxClient has a deprecated constructor
大概就是PHP下面,class名字和function名字不能重复。
更换如下版本的:
https://github.com/romainneutron/Sphinx-Search-API-PHP-Client/blob/master/sphinxapi.php
或者勤快点,把提示的那一行function名字改掉

    /// create a new client object and fill defaults
    function SphinxClient ()

改成

    /// create a new client object and fill defaults
    function __construct ()

标签: sphinx

添加新评论