RE: [PHP-DEV] Throw Question

From: Date: Thu, 17 Jun 2004 11:22:29 +0000
Subject: RE: [PHP-DEV] Throw Question
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-10566@lists.php.net to get a copy of this message
I guess "exit();" terminates execution within itself without returning to the caller, so that is no chance of getting a runtime error. For example, " return ( exit() ); " is wrong, but works. Joe Lee -----Original Message----- From: Jason Garber [mailto:jason@ionzoft.com] Sent: Thursday, June 17, 2004 7:34 AM To: internals@lists.php.net Subject: Re: [PHP-DEV] Throw Question That's what I figured. throw is a language construct. However, from the manual (http://php.net/exit): void exit ( int status) Note: This is not a real function, but a language construct. Why does $x || exit; work without a parse error? Thanks, Jason Garber At 6/17/2004 10:22 AM +0400, Antony Dovgal wrote: >On Thu, 17 Jun 2004 02:17:26 -0400 >Jason Garber <jason@ionzoft.com> wrote: > > > Consider the following: > > Why is this? > >Take a look at the bug #28727: >http://bugs.php.net/?id=28727 > >--- >WBR, >Antony Dovgal aka tony2001 >tony2001@phpclub.net || antony@dovgal.com > >-- >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

« previous php.internals (#10566) next »