free open-source SQL full-text search engine

Need a hand?
+1-888-333-1345


Sphinx

Community

Services

Misc

 Subscribe in a reader

Tracked by ClickAider

Forums :: Register :: Login :: Forgot your password? :: Search

anonymous user


PHP API Problem

Common forum | 1 | 2 | 3 | 4 | 5 | ... | 263 | 264 | 265 | 266 | next »» | Create new thread

pneumonia

Name: Sponge Bob
Posts: 24

2007-03-31 20:56:42 | reply!


First off, hats off to all involved on this project. I have experimented it for about a
month and am very impressed. My original setup worked great. I used Sphinx as a storage
engine against MySQL v 5.1.x. I was able to query against my indexes without any major
issues; however, I want to be able to use the Sphinx PHP API. Whenever I query against my
largest index with the PHP API, I get the following response:

Query failed: failed to read searchd response (status=0, ver=260, len=-2147483412,
read=0).

The interesting thing is that I can query my other smaller indexes without problem. I
have have tried rebuilding the failing index and restarting searchd, but it never works.
If it matters, I am running PHP 5.2.1 with the following configurations:

./configure' '--prefix=/usr/local/Zend/Core' '--with-config-file-path=/etc'
'--enable-force-cgi-redirect' '--enable-fastcgi' '--disable-debug'
'--enable-inline-optimization' '--enable-memory-limit' '--disable-all' '--enable-ctype'
'--enable-dom' '--enable-libxml' '--with-libxml-dir=/usr/local/Zend/Core'
'--with-openssl=/usr/local/Zend/Core' '--with-pcre-regex' '--enable-session'
'--enable-simplexml' '--enable-spl' '--enable-wddx' '--enable-xml' '--enable-hash'
'--enable-reflection' '--with-zlib=/usr/local/Zend/Core' '--enable-json'
'--enable-filter' '--with-pear' '--with-layout=GNU'

shodan

Name: Andrew Aksyonoff
Posts: 4117

to: pneumonia, 2007-04-01 07:17:55 | reply!


> I am running PHP 5.2.1 with the following configurations:

You must be running it on x64 and hitting this bug in PHP:
http://bugs.php.net/bug.php?id=40749

The workaround would be either to downgrade to 5.2.0, or replace *every* call to unpack
in sphinxapi.php with something hand-made.

pneumonia

Name: Sponge Bob
Posts: 24

to: shodan, 2007-04-01 14:36:27 | reply!


> > I am running PHP 5.2.1 with the following configurations:
>
> You must be running it on x64 and hitting this bug in PHP:
> http://bugs.php.net/bug.php?id=40749
>
> The workaround would be either to downgrade to 5.2.0, or replace *every* call to unpack
> in sphinxapi.php with something hand-made.

I am running x64 and I bet you're right. Looking back, I think this has been brought up
in the forum previously because I remember seeing it. I will look @ both options and
choose the most efficient. Thank you for the quick response. I will update you with
status.

pneumonia

Name: Sponge Bob
Posts: 24

to: pneumonia, 2007-04-02 00:44:50 | reply!


> > > I am running PHP 5.2.1 with the following configurations:
> >
> > You must be running it on x64 and hitting this bug in PHP:
> http://bugs.php.net/bug.php?id=40749
> >
> > The workaround would be either to downgrade to 5.2.0, or replace *every* call to unpack
> in sphinxapi.php with something hand-made.
>
> I am running x64 and I bet you're right. Looking back, I think this has been brought up
> in the forum previously because I remember seeing it. I will look @ both options and
> choose the most efficient. Thank you for the quick response. I will update you with
> status.
>
I opted in favor of using my own function in the API as a dirty hack to accomodate the
issue and everything appears to be working as desired. Thanks again for the support and
wonderful product Shodan!

dima

Name: Dima
Posts: 1

to: shodan, 2008-09-15 17:37:30 | reply!


> > I am running PHP 5.2.1 with the following configurations:
>
> You must be running it on x64 and hitting this bug in PHP:
> http://bugs.php.net/bug.php?id=40749
>
> The workaround would be either to downgrade to 5.2.0, or replace *every* call to unpack
> in sphinxapi.php with something hand-made.

I'm hitting this with many different php versions on both x32 and x64 platforms in
different distros while sphinx is running on x64, and we also hit this in our
application, which uses python api.

Common forum | 1 | 2 | 3 | 4 | 5 | ... | 263 | 264 | 265 | 266 | next »» | Create new thread


Copyright © Sphinx Technologies Inc, 2009