|
From: Michael E. <els...@gm...> - 2005-09-17 15:56:04
|
I'm an idiot :) Indeed, I simply forgot that I had PHP5 active on my Windows
testing machine.
Thanks, Jost! - Sorry I bothered you.
Tank
> -----Original Message-----
> From: Jost Boekemeier [mailto:jos...@ya...]
> Sent: Saturday, September 17, 2005 5:14 PM
> To: Michael Elsdoerfer; php...@li...
> Subject: Ant: [Php-java-bridge-users] Catch exceptions in PHP4
>
> Hi,
>
> > Fatal error: Uncaught
> > [o(Exception):"java.lang.Exception:
>
> In PHP4 the exception would be a warning which could
> be suppressed with @
>
> Example:
>
> $null = @new java("java.lang.String", null);
> $ex = java_last_exception_get();
> echo "val: $null, ex: $ex\n";
>
> The above code would display "val: , Object" in PHP4.
>
>
> > So, is there anyway to handle those cases gracefully
> > (except for upgrading
> > to PHP 5)?
>
> The above exception message ("Uncaught...") makes me
> believe that you already use PHP5 or above.
>
>
> Regards,
> Jost Boekemeier
>
>
>
>
>
> ___________________________________________________________
> Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier
> anmelden: http://mail.yahoo.de
|