search for: handelaar

Displaying 4 results from an estimated 4 matches for "handelaar".

2023 Mar 30
1
Having trouble with php8 bindings
...debian bullseye. xapian.so is confirmed to be loaded after manually compiling 1.4.22 packages for libxapian, and compiling the bindings from original source, because it's not possible to compile php8 bindings from the Debian src package presently.) Test code on github here: https://github.com/handelaar/Xapiansearch (Run test.php - removing the namespace refs in xapian.php and test.php makes the problem vanish.) Am I missing something? Or can I use another way of calling Xapian functions with some prefix that isn't documented? If this is as hard a roadblock as it appears -- and I am absolute...
2023 Mar 30
1
Having trouble with php8 bindings
On Thu, Mar 30, 2023 at 04:42:41AM +0100, John Handelaar wrote: > It appears that I can't use anything in PHP8.2 if the PHP file from > which I want to access xapian contains a namespace declaration, > because the PHP functions themselves cannot be found. You need to tell PHP to look in the root namespace, e.g.: $test = new \XapianWrit...
2023 Mar 30
1
Having trouble with php8 bindings
On Thu, 30 Mar 2023 at 04:58, Olly Betts <olly at survex.com> wrote: > > Another option is to import the things you want with `use` and then > you can just use `XapianWritableDatabase` without to prefix it with > `\`. To do that add this after your `namespace literallyanynamespace;` > line: > > use \XapianWritableDatabase; Thank you very much. This then (because
2023 Mar 30
1
Having trouble with php8 bindings
On Thu, Mar 30, 2023 at 05:16:16AM +0100, John Handelaar wrote: > This then (because of course) led to some more things needing tidying > up and I've run into something I can't work out while trying to update > previously-worked-in-php7 code in the actual file I'm trying to update > > $this->queryparser->set_default_...