Jump to content
The Uniform Server Community

JiPER

Member
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

1 Follower

About JiPER

  • Rank
    Newbie

Previous Fields

  • Main OS
    Windows XP
  1. JiPER

    Exceptions

    Great, it's working now. I was very unhappy about it. Hope it won't repeat, but at least I know how to fix it now. Thank you very much!
  2. JiPER

    Exceptions

    Hi, I've got a problem with exceptions in PHP5. When I throw exception, it doesn't propagate through the stack and fails with unhandled exception error, when tryin to catch it somewhere else in the code. Here's example of code, which doesn't work on my Uniform Server, but it works on standard webhosting. <?php function go($number) { if ($number == 0) { throw new Exception('Zero'); } } try { go(0); } catch (Exception $e) { echo $e->getMessage(); } ?> I've got the latest version of the Uniform Server - 3.5 Apollo. Please can anyone help? Thanks.
×
×
  • Create New...