Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3343 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1431 invoked from network); 10 Jul 2003 04:23:04 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 10 Jul 2003 04:23:04 -0000 Received: (qmail 29718 invoked from network); 10 Jul 2003 04:22:59 -0000 Received: from localhost (HELO andi-home.zend.com) (127.0.0.1) by localhost with SMTP; 10 Jul 2003 04:22:59 -0000 Message-ID: <5.1.0.14.2.20030710072702.04331fc8@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 10 Jul 2003 07:27:16 +0200 To: "Juan C. Rivera" , "'Greg Beaver'" , In-Reply-To: <000001c3467e$41f98100$6401a8c0@juanhp> References: <3F0AFF96.9080600@chiaraquartet.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: RE: [PHP-DEV] exceptions question From: andi@zend.com (Andi Gutmans) Yes, it is expensive. Andi At 08:57 PM 9/7/2003 -0400, Juan C. Rivera wrote: >You should not use exceptions for program logic. Exceptions are use to >handle exceptional cases and the overhead of handling an exception may >be quite expensive. At least on other languages. > >So, what is the overhead of throwing exceptions in PHP? Is it as >expensive as in .Net or C++? > >-----Original Message----- >From: Greg Beaver [mailto:greg@chiaraquartet.net] >Sent: Tuesday, July 08, 2003 1:30 PM >To: internals@lists.php.net >Subject: [PHP-DEV] exceptions question > >Hi, > >In experimenting with exceptions, I notice that throw() always jumps to >the first catch() (as expected), and there is no way to return to the >line after the throw(). Are we forced to use trigger_error() or some >custom function for this kind of exception, or is there a way to tell >PHP 5 "go back, the exception is fixed"? > >Thanks, >Greg > > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php > > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php