|
From: <php...@li...> - 2009-09-24 12:48:26
|
Hi again, Forget what I've said. PHP has recently added a goto(!!) statement to php 5.3, so that a php 5.3 program can escape from a begin/end block w/o generating an exception. Therefore java_begin_document()/java_end_document() must be deprecated. -- Or we can keep them as dummy calls and simply remove the documentation. I will document that if you want to catch unchecked exceptions, you must set the JAVA_PREFER_VALUES option. I think you'll have to bite the bullet and always throw checked exceptions in all published API methods of your library. After that your library will work well when used in Java containers such as EJB or the PHP/Java Bridge. Regards, Jost Boekemeier On Sep 24, 2009 11:53 AM, "Jost Bekemeier" <jos...@go...> wrote: Hi, > This seems to work. Not really. If you want to catch unchecked exceptions, you need php/java bridge version 5.4.4.2 and set the JAVA_PREFER_VALUES option. We will add a parameter to java_begin_document()/java_end_document() in version 5.5 so that execution of the compiled document stops after the first exception. Regards, Jost Boekemeier On Sep 24, 2009 12:00 AM, <php...@li...> wrote: > Would it be feasible to create a generic callback interface in Java > and then use java_closure() ... > > Sorry to followup to my own post here, but I tried this out and it does > work. The code I hav... ------------------------------------------------------------------------------ Come build with us!... |