Re: Zend API: Correct way to terminate entire request from within function
| From: | Wez Furlong | Date: | Fri, 02 Jul 2004 13:03:19 +0000 |
| Subject: | Re: Zend API: Correct way to terminate entire request from within function | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-10869@lists.php.net to get a copy of this message | ||
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
<cysgwr_eryri@yahoo.co.uk> 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.