Topic: php-pecl-sphinx problem not working right

If i do

sphinx->BuildExcerpts(array($mysqlb['post_text']), $index, $searchterm);

It works

but when i pass options
sphinx->BuildExcerpts(array($mysqlb['post_text']), $index, $searchterm, array("limit" => 700, "around" => 10));

i get bool(false)

Re: php-pecl-sphinx problem not working right

Hi,

update, re compiled manually the extension, and it works its an remi repo problem.

Re: php-pecl-sphinx problem not working right

This is very strange as there is absolutly no magic option used during the RPM build.

I think of a ABI breaks in libsphinx betwwen the version used during the RPM build, and the current one available in the repository.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: php-pecl-sphinx problem not working right

Can you please give a try to new build (1.3.0-2) if it fixes this problem ? (an so confirm my hypothesis)

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: php-pecl-sphinx problem not working right

Yes its working now smile

P.S. it also updated php from 5.4 to 5.5

Re: php-pecl-sphinx problem not working right

> P.S. it also updated php from 5.4 to 5.5
It should not
* remi repo provides php 5.4
* remi-test repo provides php 5.5

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: php-pecl-sphinx problem not working right

Hi,

sorry, i had the test repo enabled, yes its working with now on the normal remi repo

Re: php-pecl-sphinx problem not working right

Thanks for the feedback.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi