First of all, thanks for his cool extension. I got it running within 5
minutes, and it works like a charm.
Except for one issue: I'm using it to run Lucene with PHP 4. Now, in certain
cases Lucene throws an exception, for example when the query parser can't
handle an invalid query. Then I get a message like
Fatal error: Uncaught [o(Exception):"java.lang.Exception: Invoke failed:
[o(QueryParser):"org.apache.lucene.queryParser.QueryParser@1f8c6df"]->parse(
(java.lang.String)o(String):"AND "). Cause:
org.apache.lucene.queryParser.ParseException: Encountered "AND" at line 1,
column 0. Was expecting one of: ... "+" ... "-" ... "(" ... ... ... ...
... "[" ... "{" ... ... "] thrown in {/path/name} on line 37
I know there is java_last_exception_get(), but the fatal error occurs on
line 37, which is exactly where I call the (java) query parser, and then
script execution is terminated.
So, is there anyway to handle those cases gracefully (except for upgrading
to PHP 5)?
Thank you,
Michael
|