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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: andris dot zageris at inbox dot lv
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Apr 18 20:01:30 2024 UTC