From: Jost B. <jos...@ya...> - 2005-08-04 19:05:17
|
Hi Jonathan, > Is there a PHP 4 alternative to using PHP 5's > try/catch functionality to catch Java exceptions? Currently only java_last_exception(). But funny that you mention it, I have just thought about this while trying to do the opposite: find a way to signal an exception while running a PHP procedure invoked from java. I think there are at least two solutions, we could either add a primitive to register a "global" exception handler, something like: java_register_exception_handler(php_proc); or we could add a special primitive "java_call_with_exception_handler" which wraps the current invoke, getsetprop or create call and invokes the handler in case we receive an exception- instead of an object-handle (the protocol uses E to tag an exception object). Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |