On Wed, 1 Nov 2000, Dave Rolsky wrote:

> On Wed, 1 Nov 2000, Paul J. Lucas wrote:
> 
> >     If I'm a few levels deep into function calls, I'd liek to be
> >     able to do something like "return SERVER_ERROR" and have the
> >     entire call stack unwind and the current request stopped.
> > 
> >     Is there any way to do that?
> 
> Not that this has anything to do with mod_perl really but ...

        Actually it does because the status code should be preserved to
        downstream stacked handlers (and, my testing, it apparantly
        isn't):

                sub some_nested_function {
                        $r->status( SERVER_ERROR );
                        Apache->exit( 0 );
                }

                # in downstream.pm handler
                sub handler {
                        # $r->status() is NOT SERVER_ERROR here
                }

        - Paul

Reply via email to