RE: [PHP-WIN] PHP 5 try catch block

From: Date: Tue, 18 May 2004 08:02:51 +0000
Subject: RE: [PHP-WIN] PHP 5 try catch block
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-23747@lists.php.net to get a copy of this message
You can only catch exceptions. <?php try { ....Script with lots of fatal errors..... } catch (Exception $exception) { echo "all ok"; } ?> will allways result in fatal error <?php try { throw new Exception(); } catch (Exception $exception) { echo "all ok"; } ?> results in "all ok" though. Vincent

« previous php.windows (#23747) next »