Exceptions not caught

    Date: 09/14/07 (PHP Community)    Keywords: php, linux

    I'm experiencing a very strange issue one of my servers, and I can't seem to track it down - basic exception handling doesn't work.

    The following script:

    echo "Exception Test
    ";
    try {
      throw new Exception ("myException");
    } catch (Exception $e) {
      echo "Caught!";
    }

    Produces: Fatal error: Uncaught exception 'Exception' with message 'myException'...

    Any ideas? Is there some setting that might be screwed up somewhere? I'm using XAMPP on Linux, PHP 5.2.3.

    Thanks a bunch!!

    Source: http://community.livejournal.com/php/585338.html

« Post data into a link. || field checking »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home