Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10869 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7989 invoked by uid 1010); 2 Jul 2004 13:03:35 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 6372 invoked from network); 2 Jul 2004 13:03:22 -0000 Received: from unknown (HELO mproxy.gmail.com) (216.239.56.242) by pb1.pair.com with SMTP; 2 Jul 2004 13:03:22 -0000 Received: by mproxy.gmail.com with SMTP id w29so4181775cwb for ; Fri, 02 Jul 2004 06:03:19 -0700 (PDT) Received: by 10.11.118.71 with SMTP id q71mr69853cwc; Fri, 02 Jul 2004 06:03:19 -0700 (PDT) Message-ID: <4e89b42604070206031775ef54@mail.gmail.com> Date: Fri, 2 Jul 2004 14:03:19 +0100 To: Cris H Cc: internals@lists.php.net In-Reply-To: <20040702090032.89446.qmail@web25108.mail.ukl.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20040702090032.89446.qmail@web25108.mail.ukl.yahoo.com> Subject: Re: [PHP-DEV] Zend API: Correct way to terminate entire request from within function From: kingwez@gmail.com (Wez Furlong) Looking at the opcode handler for exit, it looks like you can call zend_bailout() to terminate the request. Note that since exit is an opcode and not a function, call_user_function won't work. --Wez. On Fri, 2 Jul 2004 10:00:32 +0100 (BST), Cris H wrote: > I'm trying to ascertain the correct way to terminate > the entire calling php script, after print-out, once > this function has been called. There seem to be a > number of ways of trying to do this, but I was > wondering if there is a well-established, correct > methodology in standard use.