[Xapian-devel] Re: [Xapian-discuss] Fixing issue with PHP5/Windows

Olly Betts olly at survex.com
Thu Apr 5 10:09:43 BST 2007

On Thu, Apr 05, 2007 at 09:53:54AM +0100, Olly Betts wrote:
> So in that loop in we should have:
>     std::string term = *i;
>     add_next_index_stringl(return_value, term.data(), term.length(), 1);

Oops, I lost the cast.  Make that:

    string term = *i;
    const char *p = const_cast<char*>(term.data());
    add_next_index_stringl($result, p, term.length(), 1);


More information about the Xapian-devel mailing list