php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #59051 SphinxClient::setServer doesn't accept path to unix socket
Submitted: 2010-01-29 14:14 UTC Modified: 2010-12-01 15:28 UTC
From: andris dot zageris at inbox dot lv Assigned:
Status: Suspended Package: sphinx (PECL)
PHP Version: 5.2.6 OS: Ubuntu 9.04
Private report: No CVE-ID: None
 [2010-01-29 14:14 UTC] andris dot zageris at inbox dot lv
Description:
------------
It's impossible to connect to a sphinx search daemon using a 
unix socket (feature missing from pecl sphinx or maybe 
libsphinxclient?), but the pure PHP API accepts unix sockets: 
http://code.google.com/p/sphinxsearch/source/browse/trunk/api
/sphinxapi.php#500

Reproduce code:
---------------
$s = new SphinxClient;
$s->setServer('/tmp/searchd.sock');
$s->query("test");
print_r($s->getLastError());

Expected result:
----------------
""

Actual result:
--------------
"host name lookup failed (host=/tmp/searchd.sock, 
error=Connection timed out)"

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-01-29 15:28 UTC] tony at daylessday dot org
Yes, this feature is missing in libsphinxclient in the first place.
Please report this to libsphinxclient (and Sphinx) authors.
 [2010-01-29 16:11 UTC] andris dot zageris at inbox dot lv
http://www.sphinxsearch.com/bugs/view.php?id=471
 [2010-12-01 15:28 UTC] andris dot zageris at inbox dot lv
libsphinxclient issue resolved: 
http://sphinxsearch.com/bugs/view.php?id=471#c970
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC