search for: searchdb

Displaying 2 results from an estimated 2 matches for "searchdb".

Did you mean: searchd
2023 Mar 30
1
Having trouble with php8 bindings
Hello 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. (xapian 1.4.22, php8.2, 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
2023 Mar 30
1
Having trouble with php8 bindings
...pears 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 \XapianWritableDatabase('searchdb'); 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; Cheers, Olly