Hi, I didn't notice php7 bindings were included since 1.4.2. That's good. But I have some problems with these, I compiled xapian-bindings 1.4.3 in a debian 9 container, but had no luck with it: php -r 'require "/usr/share/php/xapian.php";var_export(Xapian::version_string());' '1.4.3'Segmentation fault (core dumped) Regards, Pascal Bonne journée Pascal Masschelier - 06 84 59 38 02 / 01 39 15 90 48 - skype: pascal.masschelier On Sat, Apr 1, 2017 at 12:50 AM, Olly Betts <olly at survex.com> wrote:> On Fri, Mar 31, 2017 at 01:59:55PM +0200, Pascal MASSCHELIER wrote: > > Bindings are not complete for now but may be good enough if you doesn't > > need special weighting nor geo features. > > So the obvious question is what's the advantage of these over the > PHP7 bindings already in xapian-bindings? > > Cheers, > Olly >
On Mon, Apr 03, 2017 at 11:58:05AM +0200, Pascal MASSCHELIER wrote:> I didn't notice php7 bindings were included since 1.4.2. That's good.Perhaps I should have made more of a fanfare about them getting added.> But I have some problems with these, > > I compiled xapian-bindings 1.4.3 in a debian 9 container, but had no luck > with it: > > php -r 'require > "/usr/share/php/xapian.php";var_export(Xapian::version_string());' > '1.4.3'Segmentation fault (core dumped)That's sounds like a known issue with module unload which is already fixed in git and will be solved by the upcoming 1.4.4 release. It's easy to patch the generated code as a workaround - only one line needs changing - see: https://trac.xapian.org/ticket/748#comment:3 Cheers, Olly
The workaround is ok, thanks. Regards, Pascal On Mon, Apr 3, 2017 at 12:12 PM, Olly Betts <olly at survex.com> wrote:> On Mon, Apr 03, 2017 at 11:58:05AM +0200, Pascal MASSCHELIER wrote: > > I didn't notice php7 bindings were included since 1.4.2. That's good. > > Perhaps I should have made more of a fanfare about them getting added. > > > But I have some problems with these, > > > > I compiled xapian-bindings 1.4.3 in a debian 9 container, but had no luck > > with it: > > > > php -r 'require > > "/usr/share/php/xapian.php";var_export(Xapian::version_string());' > > '1.4.3'Segmentation fault (core dumped) > > That's sounds like a known issue with module unload which is already fixed > in git and will be solved by the upcoming 1.4.4 release. It's easy to > patch > the generated code as a workaround - only one line needs changing - see: > > https://trac.xapian.org/ticket/748#comment:3 > > Cheers, > Olly >