On Wed, 1 Nov 2000, Paul J. Lucas wrote:

> On Wed, 1 Nov 2000, John K. Sterling wrote:
> 
> > even better: Apache->exit(SERVER_ERROR);
> 
>       The documentation for exit() deosnt' explicitly say you can do
>       that.  It mentions only "0" and "DONE" (see pp. 464-465).


it works though, Apache.xs:exit() passes the status value to
perl_util.c:perl_call_halt(), which checks:
    int is_http_code = 
        ((status >= 100) && (status < 600) && ERRSV_CAN_BE_HTTP);

    ...

    if(is_http_code) {
        croak("%d\n", status);
    }

the croak() call is caught the same way 'die SERVER_ERROR' is.



> 
> > or die SERVER_ERROR;
> 
>       But that works.  Thanks!  :)
> 
>       - Paul
> 

Reply via email to